SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Width=100%???

  1. #1
    SitePoint Member Facecat's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Width=100%???

    Howdy.

    There's something about HTML I've never understood. That is, whenever I make a site that is essentially a 100% width table that sits right on top of the BODY, IE will display it right when I open it but if I follow a link to the same page, it will display it differenty. If my words aren't clear please take a look at this example I made.

    http://www.menupalace.ca/test/widetest.html

    The link in the middle links the page to itself. Using IE and having followed this link, it probably doesn't scale to 100% - there's extra space on the right hand side. Hit refresh, however, and it sizes to normal. Click on the link in the centre, and its broken again.

    If anyone knows how to fix this or even just why it does that, please let me know. Additionally, if you know a way of taking out scrollbars from any page without mucking around with frames, I'd like to know that as well.

    Thanks!

  2. #2
    SitePoint Wizard trampt's Avatar
    Join Date
    Jan 2003
    Location
    Newport, RI
    Posts
    1,997
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how about a closing body tag?

  3. #3
    100% Windoze-free earther's Avatar
    Join Date
    Feb 2003
    Location
    Linuxland
    Posts
    2,788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought in HTML you could only specify margin="0" not a specific side. You'll have to use CSS in the < head> do what you want:

    body { margin-top: 0px;
    margin-left: 0px; }

    You can add margin dimensions to the other sides as needed.

  4. #4
    SitePoint Member Facecat's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, it was margin-right:0px, thanks earther. Still not sure why it does that though.

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
  •