Reply
Help with vertically lining up elements...
Old 04-15-2008, 02:31 PM Help with vertically lining up elements...
Super Talker

Posts: 122
Name: Jess Weiss
Location: Massachusetts
Hi all - I have this site:

http://www.jessweiss.com/tt/index1.html

Two problems:

1) I want the "name" element (displayed as TrendTrack) to vertically line up with the "chartg" element (the log-in)
2) The other thing is that the space between both elements and the hr is HUGE in IE - its fine in FF.

Any thoughts on either issue? As always, TIA!
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
When You Register, These Ads Go Away!
     
Old 04-15-2008, 02:42 PM Re: Help with vertically lining up elements...
wayfarer07's Avatar
Will Work for Talkupation

Posts: 579
Name: Abel Mohler
Location: Asheville, North Carolina USA
try adding this to #name:

margin-top: -8px;

And why don't you make <div id="name"> into <h1 id="name"> instead? This makes much more sense. If you do this you will also have to align the text to the left on #name, since h1 is currently defaulted to center alignment...
__________________
Go FREELANCE <=====||=====> Hire Me
wayfarer07 is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 02:44 PM Re: Help with vertically lining up elements...
LadynRed's Avatar
Super Moderator

Posts: 6,072
Location: Tennessee
I would put a height on #chartg so that it's the same height as the #name. You may have to adjust padding to make them appear vertically aligned.

Also, in Firefox, the #banner is not enclosing the 2 floated divs inside it, check your clearing.

In IE, I believe the problem is the <br> you're using to clear. In order to combat the default spacing on a <br> I use the following:

clear:both;
height:0;
margin:0;
font-size: 1px;
line-height: 0;
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 03:11 PM Re: Help with vertically lining up elements...
Super Talker

Posts: 122
Name: Jess Weiss
Location: Massachusetts
Those did it - again, many, many thanks
__________________
"If you worried about falling off the bike, you'd never get on it" - Lance Armstrong

"The problem with people who have no vices is that generally you can be pretty sure they're going to have some pretty annoying virtues." - Elizabeth Taylor
lynnema is offline
Reply With Quote
View Public Profile Visit lynnema's homepage!
 
Reply     « Reply to Help with vertically lining up elements...
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14489 seconds with 13 queries