Linked Questions
53 questions linked to/from Are the decimal places in a CSS width respected?
2 votes
2 answers
4k views
Why can I use 1.5px as size? [duplicate]
I knew that 1px is the smallest unit that a computer can represent. But when I put 1.5px in css, it worked. Moreover, this 1.5px was bigger than 1px and smaller than 2px. So, does that mean that px is ...
4 votes
1 answer
4k views
Why does Chrome truncate the decimal width of a 100% width table in a div? [duplicate]
I have a div that has a decimal width (e.g. 250.5px) and a table inside of it with a width 100%. For some reason, Chrome will truncate the decimal portion of the table's width (e.g. from 250.5px to ...
0 votes
1 answer
3k views
Fractional pixels are rounded differently in IE and Chrome [duplicate]
Is there any way to control whether a browser rounds fractional pixels up or down? IE rounds down by default, and Chrome rounds up, as can be seen in the following example http://jsfiddle.net/q5BQs/3/ ...
0 votes
1 answer
3k views
Is Firefox the only browser that supports floating point numbers as width declaration? (e.g. 163.4px) [duplicate]
Possible Duplicate: Are the decimal places in a CSS width respected? I have a navigation (li) which needs a pixel value to fit within an ul (has display:block). So I use width:163.4px for the li's....
0 votes
2 answers
3k views
Are decimal pixels in css supported in multiple browsers? [duplicate]
I'm using width:331.25px in my css. It is working on chrome and safari but I haven't tested in others yet. Is this correct and should it be used?
0 votes
1 answer
592 views
Fractional width points [duplicate]
Possible Duplicate: Are the decimal places in a CSS width respected? Normally in CSS when we set a size we use while values in points or pixels. However, sometimes it is not possible to know the ...
0 votes
1 answer
742 views
Are sizes with decimal valid and how will the browser treat them? [duplicate]
I'm using http://cssbox.sourceforge.net/jstyleparser/ to parse the CSS and the issue is that when i try to save to a file by using rule.toString() the sizes found in the rules (width, padding, etc.. ...
0 votes
0 answers
53 views
Why Is h1's height rounded down, ignoring its actual line-height? (With Codepen) [duplicate]
When an h1 element has a line-height set on it and no other height, no matter whether the line-height is set in rems or pixels, the calculated height of the element is rounded down. Checked in Chrome ...
154 votes
11 answers
500k views
Bootstrap: how do I change the width of the container?
I have used Twitter Bootstrap to develop a website with the fixed container class, but now the client wants the website to be 1000px width and not 1170px. I don't use the .less files. Is there a ...
76 votes
11 answers
270k views
css divide width 100% to 3 column
I have a layout where I have 3 columns. Therefore, I divide 100% by 3. The result is obviously 33.333.... My goal is perfect 1/3 of screen. Question: How many numbers after dot can CSS handle to ...
118 votes
2 answers
59k views
Can a CSS pixel be a fraction?
Can a CSS px be a fraction? Is it allowed by the standards? And if so, do the major browsers support it? Let's back the answers up with documentation, folks.
63 votes
2 answers
42k views
Getting the actual, floating-point width of an element
I'm using jQuery (v1.7.1) and I need to get the absolute, floating-point width of an element, but all of jQuery's width methods seem to be rounding-off the value of the width. For example if the ...
40 votes
1 answer
17k views
How do browsers deal with non-integer values for height and width?
When browsers are given widths and heights for elements that aren't integer values, how do they deal with them? In particular, At what stage do non-integer values get rounded? Do they round to the ...
25 votes
5 answers
9k views
Where do the lost pixels go in a percent CSS layout? [duplicate]
Possible Duplicate: Evenly distributed height of child elements with CSS Lets say i have a design with 6 DIVs that are float left with a width of 16.666%. So the document size is splited in 6 ...
9 votes
7 answers
46k views
Css layout help - 3 column footer
I'm trying to get the footer in my site to look like this: Wilgrove Baptist Church Home | About | Ministries 1234 S. Main st. John G. Smith, Sr. Pastor Contact Us | ...