SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Weird <div id> drop in FF&Safari
-
Oct 3, 2004, 14:49 #1
- Join Date
- Oct 2003
- Location
- UK
- Posts
- 18
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Weird <div id> drop in FF&Safari
Hi Guys,
Take 2 pages I have built using CSS. They have exact same header graphic but the content block I use on each page differs slightly in that it refers to CSS that is slightly different.
The FETCH PAGE uses a DIV for the content (the white block), but the block falls down the page slightly.
Code:#fetch { width: 700px; background-color: #FFF; text-align: left; height: 450px; margin: auto; }
Code:#block { width: 700px; background-color: #FFFFFF; margin: auto; text-align: left; }
BTW, this seems to be just a SAFARI & FIREFOX thing.
-
Oct 4, 2004, 10:44 #2
- Join Date
- Jan 2003
- Location
- Hampshire UK
- Posts
- 40,556
- Mentioned
- 183 Post(s)
- Tagged
- 6 Thread(s)
Hi,
Its probably the default margins and padding on the form affecting the layout.
Try this:
Code:form {margin:0;padding:0}
-
Oct 4, 2004, 15:30 #3
- Join Date
- Oct 2003
- Location
- UK
- Posts
- 18
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Paul O'B
Many thanks.
Bookmarks