Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Website Design Help

  1. #1
    Join Date
    Dec 2005
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Website Design Help

    I am developing a website for a friend of mine and I have so far created a basic front-page.

    It works fine in IE but surprise, surprise problems in Firefox.

    Here is the link:

    http://www.wellingunited.com/ucteam2/ch05_eg14.html


    Here is the link for the CSS:

    http://www.wellingunited.com/ucteam2/ch05_eg14.css


    The problem seems to be with the height/widths of the divs. I realise it is very petty but I want the divs to line up in IE and Firefox.

    Does Firefox recognise different height/width codes?

    Thanks

  2. #2
    Join Date
    Jan 2005
    Posts
    115
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    I've not looked at your code in too much detail, but you are blaming the wrong browser for causing problems. Internet Explorer is the one displaying the page incorrectly. Firefox follows web standards and is far more advanced than (the current release of) Internet Explorer.

    To be sure that the CSS is going to work as well as you expect, you should validate your HTML first: http://validator.w3.org/check?verbos...ch05_eg14.html
    Missing and wrongly ordered tags will cause display problems in many browsers.

  3. #3
    Join Date
    Dec 2005
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Maybe I should reword my post.

    What I really mean is that the display in IE is what I want it to look like, whilst in Firefox the divs are very slighlty not aligned properly.

  4. #4
    Join Date
    Jan 2005
    Posts
    115
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Nope, I understood you perfectly. Maybe I should reiterate mine - IE is wrong, Firefox is right.

  5. #5
    Join Date
    Dec 2005
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No problem, either way I don't know where to start.

    I had a look at the validator and there's nothing there that seems to affect my problems.

  6. #6
    Join Date
    Apr 2005
    Location
    Haslemere, Surrey, UK
    Posts
    340
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default

    Quote Originally Posted by AntonyG
    Nope, I understood you perfectly. Maybe I should reiterate mine - IE is wrong, Firefox is right.
    I think what he is asking is that even though IE is displaying it 'incorrectly', the actual visual display that IE shows is what he is ultimately after.

    Maybe the question should be how do I change my code to look like the IE display when viewed in Firefox.
    Alastair - WOWD



  7. #7
    Join Date
    Dec 2005
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Here, Here!

    We got there eventually

    So does anyone have a clue?

  8. #8
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    I think what you are seeing here is a classic sign of IE not calculating the padding of div tags correctly. IE will not add the padding to the width you specifiy, compliant browsers will add the padding. so a div width 100px and padding 10px in IE would become 100px wide, but in FF would be 110px wide.

    ____
    EDIT
    just changed it, as I original said it the wrong way round

  9. #9
    Join Date
    Dec 2005
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok thanks, is there anyway I can fix this issue?

  10. #10
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    I'm on the road right now, so I haven't been able to test this (don't have a PC with IE). It was the borders that seem to be causing the problems.
    This might not work.
    Code:
    /* CSS Document */
    
    div#navigation {
      float:left;
      width:158px;
      height:400px;
      color:#ffffff;
      background-color:#D3D3D3;
      border:2px solid #FFFFFF;
      padding:5px;}
    *html div#navigation {
        height:404px;
    }
    
    * html div#navigation {
    width:158px;
    w\idth: 158px;}
    
    div#content {
      margin-left:185px;
      width:604px;
      height:400px;
      background-color:#D3D3D3;
      border:2px solid #FFFFFF;
      padding:5px;}
    
    *html div#content {
        width:600px;
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Website Design Help, Part 2 :)
    By JamesU2002 in forum General Technical Support
    Replies: 50
    Last Post: 5th April 2006, 08:21 PM
  2. Table-less design, css & XHTML
    By JohnnyW in forum Website and Graphic Design
    Replies: 2
    Last Post: 22nd December 2005, 12:06 PM
  3. Website Design & Development
    By batty5 in forum For Sale, Sites and Services
    Replies: 3
    Last Post: 21st December 2005, 02:19 AM
  4. Website design for sale
    By Shiven Rabadia in forum For Sale, Sites and Services
    Replies: 3
    Last Post: 13th November 2005, 04:11 PM

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
  •