Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

wordpress css problem with div alignment

Posted on 2011-03-10
9
Medium Priority
?
497 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. 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 : Open Page or Post…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Suggested Courses

885 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