Linked Questions

2 votes
2 answers
4k views

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 ...
minjae kim's user avatar
4 votes
1 answer
4k views

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 ...
Tim's user avatar
  • 51
0 votes
1 answer
3k views

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/ ...
user3058000's user avatar
0 votes
1 answer
3k views

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....
Tomkay's user avatar
  • 5,170
0 votes
2 answers
3k views

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?
Joe Scotto's user avatar
  • 11.1k
0 votes
1 answer
592 views

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 ...
santa's user avatar
  • 12.6k
0 votes
1 answer
742 views

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.. ...
daniels's user avatar
  • 19.4k
0 votes
0 answers
53 views

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 ...
Undistraction's user avatar
154 votes
11 answers
500k views

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 ...
alex's user avatar
  • 4,914
76 votes
11 answers
270k views

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 ...
Ing. Michal Hudak's user avatar
118 votes
2 answers
59k views

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.
Kees C. Bakker's user avatar
63 votes
2 answers
42k views

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 ...
S P's user avatar
  • 1,841
40 votes
1 answer
17k views

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 ...
Jimmy Breck-McKye's user avatar
25 votes
5 answers
9k views

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 ...
meo's user avatar
  • 31.3k
9 votes
7 answers
46k views

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 | ...
Micah's user avatar
  • 117k

15 30 50 per page