Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 12-15-2007, 05:25 PM Vertical-align issue
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
Hey everyone! Newby CSS problem for ya . Im using a template for a classic three column css layout. Everything works fine but when I remove the left column and resize the middle column then the right column no longer has everything locked to the top.

vertical-align:top doesnt seem to work to make everything in the right column (atm just a search bar) stay at the top. Any suggestions? I also tried top: 160px;

Thnx
Truly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-15-2007, 06:23 PM Re: Vertical-align issue
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
vertical-align:top doesnt seem to work to make everything in the right column (atm just a search bar) stay at the top.
That's because it doesn't work like it does in tables, it refers to the baseline of text only.

top:160px would only work if the element was relatively or absolutely positioned.

W/o see all the code, it's impossible to figure out what's wrong.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-15-2007, 06:56 PM Re: Vertical-align issue
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
Thanks for the comments. Heres some related code:
HTML Code:
<div class="floatRight width25">
<form name="contactform" action="search.php" method="get">
<b>Search our database.</b>
<input type="text" name="searchfield" style="width:100%">
<input type="submit" name="search">
</form>
</div>

Code:
.width25 {
  width: 24%;
}
.floatRight {
  float: right;
}

Hope that helps deciphering my problem. Thanks
Truly is offline
Reply With Quote
View Public Profile
 
Old 12-15-2007, 07:24 PM Re: Vertical-align issue
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and vertical-align applies to inline elements only

http://www.candsdesign.co.uk/referen...ertical-align/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-15-2007, 09:08 PM Re: Vertical-align issue
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
Oooo ok. That makes sense. But if I cant use "top" and I cant use vertical-align what would I use?
Truly is offline
Reply With Quote
View Public Profile
 
Old 12-15-2007, 09:51 PM Re: Vertical-align issue
Extreme Talker

Posts: 238
Location: United States
Trades: 0
Without seeing more markup or an example page, I'm guessing that it is a float issue. I know if you have the right column floated, but nothing else floated, the right column would go to the top.
__________________
The interlocking pieces of web development: usability, performance, accessibility, and standards.
frost is offline
Reply With Quote
View Public Profile
 
Old 12-15-2007, 10:19 PM Re: Vertical-align issue
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
Ok I will look into that thanks.
Truly is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Vertical-align issue
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.45439 seconds with 12 queries