Forums

Whitespace above header NOT CAUSED BY PADDING (7 posts)

  1. creati29
    Member
    Posted 1 year ago #

    Hi guys, im currently having a problem whereby at the top of my page in all browsers I have what appears to be a linebreak that I cannot get rid of, I've checked right through the css of the theme and its definately not caused by padding or margin, does anyone know how or why this is there and how I may remove it?

    Any help would be great thanks :)

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    link ?

    if no one can see this white space, no one can help ...

  3. creati29
    Member
    Posted 1 year ago #

    haha very true sorry..

    the link is http://blsc.org.uk/news currently I have made a temporary fix for the problem by adding margin-top:-17px; to the body in the CSS, however the problem with this is that it is 1px out of alignment in chrome and safari, which doesnt sound alot but looks ugly i think. Also negative margins doesnt work in IE.. Nightmare for me!

  4. creati29
    Member
    Posted 1 year ago #

    Also I have just noticed but I have the same thing happening above the side column in chrome and safari and IE, however not in firefox, which is odd

  5. alchymyth
    The Sweeper
    Posted 1 year ago #

    your site validation is quite ok, http://validator.w3.org/check?uri=http%3A%2F%2Fblsc.org.uk%2Fnews%2F&charset=%28detect+automatically%29&doctype=Inline&group=0
    however one error points to a stray character in the first line before or instead of the < of the <DOCTYPE.. declaration.

    it is probably at the top line of header.php or of index.php.

    i have seen this kind of thing before, causing an extra space at the top of some browsers.

  6. creati29
    Member
    Posted 1 year ago #

    I thought it might be something to do with that same validation error unfortunately nothing my limited knowledge can muster seems to affect it - I think it might possibly have something to do with the character encoding of the website as if you view the site in IE, then change the encoding to western you get characters in the space instead of just blank space, however im not sure how to fix the problem

  7. creati29
    Member
    Posted 1 year ago #

    Anyone else suggest anything please? Thanks for the help thus far but its really holding me back at the minute

Topic Closed

This topic has been closed to new replies.

About this Topic