Solved

wordpress css problem with div alignment

Posted on 2011-03-10
9
484 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

809 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