RafalChmiel's Profile User Rating: -----

Reputation: 0 Apprentice
New Members
Active Posts:
6 (0.01 per day)
27-July 12
Profile Views:
Last Active:
User is offline Aug 14 2012 02:01 AM

Previous Fields

Who Cares
OS Preference:
Who Cares
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

No latest visitors to show

Icon   RafalChmiel has not set their status

Posts I've Made

  1. In Topic: Is there a code organising standard?

    Posted 11 Aug 2012

    View PostAtli, on 11 August 2012 - 10:44 AM, said:

    There are a few coding standards out there, but not from any organization like the W3C or WHATWG. Companies and open-source projects just tend to use their own standards for their projects. - I like to stick to the WordPress CSS Coding Standard.

    Although, most such standards are pretty much the same. CSS doesn't have that complex syntax, and there aren't that many ways to make large CSS files readable. Basically, it's just: one selector per line; one style per line, indented four spaces or one tab; use spaces between styles and values (and between multiple values); organize the blocks into logical groups, perhaps using comments to separate them.

    After that you can go into style order, but that's mostly unnecessary. Few blocks are large enough to warrant that sort of nitpicking.

    Thanks for your answer.
  2. In Topic: How do I work out 100% of min-height in CSS into pixels?

    Posted 27 Jul 2012

    View PostDarenR, on 27 July 2012 - 10:43 AM, said:

    all the divs that are holding your info

    I'm in fact using section tags and I have tried that. The outcome were slightly larger areas with white lines between each section. Strange.
  3. In Topic: How do I work out 100% of min-height in CSS into pixels?

    Posted 27 Jul 2012

    View PostDarenR, on 27 July 2012 - 10:38 AM, said:

    if you use % for everything --- it will be relative to the screen size

    Thanks for your answer. But what do you mean for "everything"?
  4. In Topic: How do I work out 100% of min-height in CSS into pixels?

    Posted 27 Jul 2012

    View PostDarenR, on 27 July 2012 - 10:23 AM, said:

    using % means just that-- a percentage of an area. so if you have a 10/10 area and put 10% you will use 1/1. so if oyu have somehting that is 100' x 100' and something that is 20x20, 10% will NOT be the same. You have to decide whether you want a fixed size or a fluid size.

    I want a fluid size. However is it possible to read off how much 100% is in that given area (section) in JS? I just want each section to be able to fit the WHOLE screen.

    View PostMartyr2, on 27 July 2012 - 10:03 AM, said:

    It is a percentage... meaning it has no fixed pixel value. It varies depending on the resolution. So figure out what size of resolution you are designing for and then set the height based on that resolution. Just keep in mind it may then not always look the same on different resolutions.


    Edit: You can also use something like Javascript to read the resolution and then alter the element to be that height. But even in that scenario you should plan it to be a certain height based on your target resolution just in case they have JavaScrpt disabled.

    Thanks, that was what I was thinking of. But I don't have much experience in JS (just learning it) so how would that be done. Is there any other way of making each section fit the screen perfectly (ie, the value of the first section when set to
    min-height: 100%;

My Information

Member Title:
New D.I.C Head
15 years old
August 14, 1998
I like writing code for the web.
Full Name:
Rafal Chmiel
Years Programming:
Programming Languages:
HTML, CSS, JavaScript, Visual Basic, C#

Contact Information

Website URL:
Website URL  http://rafalchmiel.com/


RafalChmiel has no profile comments yet. Why not say hello?