Results 1 to 3 of 3

Thread: Safari/IE Problems

  1. #1
    Join Date
    Apr 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Safari/IE Problems

    After designing my site in dreamweaver using CSS stylesheets, I thought that all was well until i realised that people were seeing very different versions of my site using IE. Viewed in Safari it looks fine; all centered, correct layout. Whereas when viewed using IE the content doesn't center in the browser window. The site is www.timholley.de.

    Any tips/advice!?! It's my CV website for applying to jobs so I'm really loosing out if it doesn't look the same in all browsers.

  2. #2
    Join Date
    Apr 2006
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello TimHolley,

    One thing you can do is to place all your content inside another div like below:
    Code:
    <div id="main">
    	<div id="container">
    	etc...
    	</div>
    </div>
    And add this into your .css file:
    Code:
    #main {
    	width: 100%;
    	text-align: center;
    }
    This will center it for Windows (IE5+ and Firefox)

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yeah. You just need to center the whole thing.

    Also, you could just use:
    <div align="center">
    .......
    </div>
    around all of your content...

    the css is more complex, but "better", so use what you want



    Actually, looking at your source, all you need to do is replace:
    <div id="container">
    with:
    <div id="container" align="center">
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •