Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
10-03-2006, 02:47 AM #1
css margins not working in firefox
hey. I kinda need some help here...
okay... well the main problem is that my design doesn't display properly in firefox. the margins don't affect the div display, and the divs are automatically expanding past the page margin. this is for the div classes .lhead and .lbase. I want them to conform to the width of the browser, but be within the maincontent div. I want them to have a 10px left margin and a 200px right margin. yeah. maybe someone can help. that would be cool.
another thing that I don't really remember how to do is get two divs or spans to display next to eachother filling the width of the area that they're in. this would apply to div.lauthor and dic.lsource.
other than that I think I've got everything under control. Maybe some suggestions on how to optimise the html or css or something would be nice.
10-03-2006, 04:56 AM #2
- Join Date
- Dec 2004
- In a place far, far away...
- Thanked 1,043 Times in 1,019 Posts
Any div that you set to 100% width remove the width. That is part of the your problem because padding does count for overall width as well as margin. Read into the css box model.
10-03-2006, 10:58 AM #3
css box model? I'm kind of comfused. But I'll see if I can fix it.
10-03-2006, 11:43 AM #4
Thank you very much. I don't know why I didn't try that.