Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Name: Qasim Ali
Hi, Guys!
I want to adjust a fixed width of a <DIV> in
CSS. So when I give width:800px; in
Internet Explore then it works and when I write
same code in Firefox, it does not work and not
adjust a fixed width.You can see the code eaxmple here:
CSS Code
#body{
width:800px;
}HTML code
<div id="body"></div>So 800 px width automatically fix in IE but not
in FF, So how can I fix a width of DIV in
Firefox?Regards,
Qasim Ali.
http://qaswallpapers.sitesled.com

Not sure why, but I wouldn't use "body" as ID name.
Try to use "wrapper" or "page" instead.
If it doesn't work, maybe other code in the HTML or CSS created the problem.
---
Fubar

Hi, Laler!
I tried other names as well in place of body (as an ID) but do
not work. Now what can be the problem?You will have seen in many sites like http://cricinfo.com and
http://bbc.com that their <DIV> make same layout in all
Browsers. But I don't know how?Regards,
Qasim Ali.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |