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

x
?
Solved

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

Posted on 2013-01-25
3
Medium Priority
?
305 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 2000 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

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.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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).
Suggested Courses

783 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