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.

Website Design Forum


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



Freelance Jobs

Reply
CSS header. The subheader is giving me problems
Old 07-17-2006, 11:11 AM CSS header. The subheader is giving me problems
Super Talker

Posts: 109
Trades: 0
I'm working on a new site and I'm trying to edit the CSS header so that I can fit in my logo which is 160px height. My biggest problem is the subheader which I cannot seem to get to flush with the bottom. Can anyone help me with this? Here is the relevant CSS code
Code:
#header {
  padding: 7ex 0;
  color: #000000;
  background-image: url('http://chibabeat.com/images/side2.jpg');
}
.headerTitle {
  color: black;
  margin: 0;
  padding: 0.25em 4mm 0.25em 4mm;
}
.headerTitle a {
  color: #000000;
  background-color: transparent;
  text-decoration: none;
  font-size: 110%;  /* For MSIE */
  font-color: #000000;
  font-weight: bold;
  font-style: italic;
}
.headerTitle > a {
  font-size: 138%;  /* For fully standards-compliant user agents */
}
.headerTitle span {
  color: Black;
  background-color: transparent;
  font-weight: normal;
}
.subHeader {
  color: white;
  background-color: black;
  font-size: 109%;
  text-align: center;
  margin: 0px;
  padding: .5ex 0 ;
 
}
.subHeader a {
  color: white;
  background-color: black;
  text-decoration: none;
  font-weight: bold;
  margin: 0;
  padding: 0 1ex;
}
.subHeader a:hover {
  color: black;
  background-color: white;
}
__________________

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


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


A master in stucco, veteran in love, and an outlaw in Peru!
orionvortex is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-17-2006, 11:26 AM Re: CSS header. The subheader is giving me problems
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
The only true way I've seen that won't use tables and still get something to flush to the bottom is by putting the text inside of an image and using margins (or absolute positioning if you really know what you're doing, but that's not for newbies) to position the text X pixels from the top.

So...if your subheader is 25 pixels high, you'd set a margin-top of 135px (since 135 + 25 = 160).

You'll never get it to work with scalable text simply because it's scalable, unless perhaps you put it in a table cell (haven't tried that yet) with vertical-align: bottom defined. vertical-align: bottom in a div doesn't work with all browsers (IIRC IE doesn't handle it right).
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 07-17-2006, 02:35 PM Re: CSS header. The subheader is giving me problems
Super Talker

Posts: 109
Trades: 0
That did the trick! Arigatou gozaimasu!
__________________

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


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


A master in stucco, veteran in love, and an outlaw in Peru!
orionvortex is offline
Reply With Quote
View Public Profile
 
Old 07-17-2006, 05:03 PM Re: CSS header. The subheader is giving me problems
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
I don't know whether to say "you're welcome" or to ask for fries with that.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 07-17-2006, 08:30 PM Re: CSS header. The subheader is giving me problems
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I thought maybe "God Bless You" might be in order...
__________________
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 07-18-2006, 03:06 AM Re: CSS header. The subheader is giving me problems
Super Talker

Posts: 109
Trades: 0
God Bless You!
__________________

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


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


A master in stucco, veteran in love, and an outlaw in Peru!
orionvortex is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS header. The subheader is giving me problems
 

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