Skip navigation
brian914
Currently Being Moderated

css weird padding issue

Sep 15, 2011 5:11 PM

I am having this issue with weird padding on I think a ul, but I can't figure where it is coming from. It looks like the ul or it's li are shifted up.

http://bluehouseorganicfarm.com/?page_id=2

 

At the top, the main navigation sits inside a div called mainNavHolder, which seems to sit in the right location. But somehow the ul inside is shifted up.

 

Any ideas why this is happening would be greatly appreciated.

 

Thanks a lot!

 
Replies
  • Currently Being Moderated
    Sep 15, 2011 11:59 PM   in reply to brian914

    Who wrote this Wordpress css?????? It's absolutely rubbish (unless you have altered it)?????

     

    Make a back-up copy of the css file before you follow the amends below.

     

    Find the 'logo' css selector (if you can) and change it to the following:

     

    #logo {
    width: 735px;
    margin: 0 auto 20px auto;
    border: 2px solid #283567;
    }

     

    Add the below css to remove the border around the image as the border has now been set on the 'logo' css selector (see above)

     

    #logo img {
    border: none;
    }

     

    Find and change the 'mainNavHolder' selector to as follows:

     

    #mainNavHolder {
    float: left; 
    width: 100%;
    clear: both;
    }

     

    Find and change 'logo-and-nav-holder' selector as follows:

     

    #logo-and-nav-holder {
    width: 1005px;

    }

     

     

    There is simply no reason to use absolute positioning OR setting the height on any of the above selectors.

     

     

    I hate Wordpress simply because of the convoluted css in many many of the themes I've look at. As for including all the IE6 star hacks in the css that's just simply ridiculous. Who ever wrote the css has very limited knowledege and shouldn't have been let anywhere near to producing a Wordpress theme. It's some of the most rubbish css I have come across and does nothing for Wordpresses credibility - rant over.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points