Solved

wordpress css problem with div alignment

Posted on 2011-03-10
9
479 Views
Last Modified: 2012-05-11
Please can someone help with an alignment issue i have on the wordpress twenty ten theme.

I have styles the twenty ten theme to a custom design, however i seem to have a white gap at the top on the "main" div and its not flush with the footer, i think it maybe a div issue as my css seems ok?

link to page is here:

http://www.bluebean.org.uk/current/community.html
0
Comment
Question by:Andy6350
  • 5
  • 4
9 Comments
 
LVL 10

Expert Comment

by:c_a_n_o_n
ID: 35094272
Add margin-bottom: 0; to the search

#search {
    float: right;
    margin-bottom: 0;
    margin-right: 20px;
    margin-top: 9px;
}
0
 
LVL 10

Expert Comment

by:c_a_n_o_n
ID: 35094290
or replace with

 #search {
    float: right;
    margin: 9px 20px 0 0;
 }
0
 

Author Comment

by:Andy6350
ID: 35098852
Thank you very much, cant believe i didnt notice that div - thats working until 1am for you.

I will accept that as a great solution, but before i do can i ask another quick question you might know.

I have removed the space between the search and the container, however the container is still overlapping the footer and the image of eynesbury rovers is outside of the contents area in IE?

Any Ideas?

Thanks
0
 
LVL 10

Expert Comment

by:c_a_n_o_n
ID: 35103146
How about a little more content or add two breaks.

<br />
<p>Kick Off 3:00pm<br>
Saturday 12th March<br>
UCL Div 1 (away)</p>
<br />
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 10

Expert Comment

by:c_a_n_o_n
ID: 35131570
Did everything work out okay?
0
 

Author Comment

by:Andy6350
ID: 35133026
Sorry for the delay, i have been away.

It didn't solve the problem as i will only be covering the issue up, i need to make sure that its going to look right when the client adds or removes content.

It seems to be an issue with IE8.

The page below seems to have a similar issue where the sidebar is over-lapping the content area

http://www.bluebean.org.uk/current/category/126000-175000/

Also found an issue with the following page in IE8 where there is not space between each item as there is in chrome.

http://www.bluebean.org.uk/current/category/176000-250000/

All the little issues can be head scratching sometimes.

I appreciate your help and if you would like me to accept your original solution and resubmit a new question. Didn't want you thinking this is dragging on, but really do appreciate your help



0
 
LVL 10

Accepted Solution

by:
c_a_n_o_n earned 500 total points
ID: 35142613
Try this -- play around with the margin setting.  This worked for the first link.

#secondary {
    clear: right;
    margin: 0 20px 10px 0;
}

Your second link may be answered here ....  Something to do with a clear div and &nbsp;
http://stackoverflow.com/questions/1245914/ie8-container-with-margin-top-10px-has-no-margin

I hope that helps.
0
 

Author Comment

by:Andy6350
ID: 35143457
Thank you very much, all issues solved with the exception of the images within the content area, but these i think i can sort out. You have been a great help.

Cheers
0
 

Author Closing Comment

by:Andy6350
ID: 35143459
Great help, thank you
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now