|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Quick question about Firefox...
Hi, I am new to webdesign and as I learn on my own I am trying to stick to standards. The only problem I am having right now is that when I set properties for a DIV tag on my CSS, example width 100%. IE seems to display it the way I want with NO scroll bar at the bottom, but Firefox does put one there, and it only scrolls a little bit.
What am I missing here? Thanks, Sam |
|
#2
|
||||
|
||||
|
The difference is probably with the definition of 'width'. Firefox treats 'width' as being the space left after you take away any borders and padding (and maybe margins too...) so when you say width:100%, you're probably seeing 100%+ about 10px (your padding if you have any).
Elements like div, p, h1 and maybe one or two others fill the available width by default so maybe you don't need to worry about it. I hope this helps. |
|
#3
|
|||
|
|||
|
Thanks....
I'll give that a try and see what I get thanks.
Sam |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Quick question about Firefox... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|