valign on css/div ?

MTR

New Member
trying to work out a few bugs, not very good with css


http://moshpittragedy.com/carb/

i need that banner on the bottom left to sit about 2px from the bottom of that side at all times...

is that even possible?


i also need to figure out a couple small things but then i'd be all set...

step by step if possible. thank you!
 
Last edited:

aksdesigns

New Member
It already does?

If you're looknig to know how to use valign in css or html it is:

HTML:
Code:
<td valign="left">

or

CSS:
Code:
.certainclass {
            vertical-align: left;
}

Then you would add padding-left: 2px to a class specified to the td.

Any help?
 

PixelPusher

Super Moderator
Staff member
It already does?

If you're looknig to know how to use valign in css or html it is:

HTML:
Code:
<td valign="left">

or

CSS:
Code:
.certainclass {
            vertical-align: left;
}

Then you would add padding-left: 2px to a class specified to the td.

Any help?

Incorrect.
In CSS or HTML there is not a "left" option for vertical align. Like the style states...it relates to "vertical" alignment. Left relates to horizontal alignment. The values for {vertical-align} are: sub, super, text-top, text-bottom, top, bottom, middle.
 

PixelPusher

Super Moderator
Staff member
MTR, one option off the top my head, is to use fixed positioning for your banner. If you want it to be at the bottom left corner at all times, no matter what you could style it like this:

Code:
div.fixedbanner {
   position:fixed;
   bottom:2px;
   left:2px;
   z-index:2;
   width:70px;
   height:275px;
}
 

MTR

New Member
what i did instead was put a iframe above it, so it will always sit at the spot i want... i looked around and all else seemed to complicated for me.. thanks all...
 

brpcraig

New Member
what i did instead was put a iframe above it, so it will always sit at the spot i want... i looked around and all else seemed to complicated for me.. thanks all...

That's a very poor solution to the problem. I suggest taking PixelPusher's advice on this one.
 
Top