Solved

Vertical align floated divs (tables don't work) on fluid width header.

Posted on 2013-01-25
3
264 Views
Last Modified: 2013-05-08
The page here shows the title and share icons floated left and right, but I need them vertically aligned so that when the text is on two lines, the share icons are vertically aligned and not too high up.

The problem is the fluid width, where I can't specify the heights for the tables if I try that instead.

Does anyone know how/if this can be achieved? Thanks.
0
Comment
Question by:UName10
  • 2
3 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 38820709
The validator shows 16 errors.  Some of them are structural (invalid tagging) and need to be corrected before you try to fine tune your layout.

Cd&
0
 

Author Comment

by:UName10
ID: 38824111
Hi there,

Thanks for the reply.

Yeah most of them are empty alt tags which I can fix, but the banner is paid for and came from the client. It has no bearing on this though.

Whats I am concerned about however, is the validator is picking up an unclosed body tag:

Line 366, Column 7: end tag for "div" omitted, but OMITTAG NO was specified
</body>

It's closed, so I;m not sure what that could be? Any ideas would be great, as well as the floats of course.

Many thanks again.
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 38824640
On the element id="share" try adding margin-top:25%

The unclosed div appears to be footer-wrapper.

Cd&
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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... …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

863 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