|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I'm a beginner CSS coder, so I'm sure I've done something extremely stupid:
I have a wrapper div that is 850px wide. I have set margins to: 0 auto; It looks fine on a Mac running Firefox or Explorer, but when viewed on IE 5 or 6 on a PC, the background image is off and the site is flush left - not centered. My header div is 800px wide and centered, and my main content dive is 800px and centered, so the background image of the wrapper will show on sides and top evenly. Here's the url: Equipment trailers, flat bed trailers, deckover trailers, skid steer trailers, utility trailers, tilt trailers, auto hauler trailer, Hudson Bros Trailer Mfg Here's the css: body { background-color:#003300; font-family:Palantino "Times New Roman", Times, serif; font-size: 1em; text-align:left; } #wrapper { background-image:url(../images/bkgnd.jpg); background-attachment:fixed; width: 850px; height; margin: 25px auto; padding:25px 0; } #header { background-color:#003300; border-top:medium solid #FFFFFF; border-right: medium solid #FFFFFF; border-left: medium solid #FFFFFF; width: 800px; margin: 0 auto; padding:0; } #main { clear:both; background-image:url(../images/images/main_bkgnd.jpg); width:800px; margin:0 auto; padding:0; border-left: medium solid #FFFFFF; border-right: medium solid #FFFFFF; border-bottom: medium solid #FFFFFF; } Any help would be greatly appreciated. |
|
|||
|
Hi,
As you're going with fixed width, I'd "position" your outside container. Something like this... #wrapper { background-image:url(../images/bkgnd.jpg); background-attachment:fixed; width: 850px; position:absolute; left: 50%; margin-left: -425px; padding-top: 25px; } |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS - centering div | kruser | Web Programming Discussion Forum | 4 | 09-27-2007 04:38 PM |
| CSS- Centering a whole page and pixel positioning | technica | Graphics & Design Discussion Forum | 16 | 12-25-2005 12:42 PM |
| Centering Pages | -=DEUCE | Graphics & Design Discussion Forum | 4 | 08-23-2005 09:38 AM |
| Centering Left-Justified Text on the Page in Firefox | beelzebob | Graphics & Design Discussion Forum | 1 | 03-05-2005 11:35 AM |
| Centering a PAGE for resolution size | Thomas_Briggs | Graphics & Design Discussion Forum | 8 | 03-07-2004 08:54 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |