FORUMS: list search recent posts

Class to tab?

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jeff Kelley
Class to tab?
on Jul 10, 2008 at 3:10:34 pm

On my website, which is css/html, I have a list of song names on the left and the band on the right. I'd like it to look like the name of the song is tabbed over. Everything I try bumps the band name down to the next line. I thought using class would work . . .

In html


In css stylesheet
p.rightlist {text-align: right}

(I would really like to tell it exactly how many pixals to "tab" over, instead of (text-align: right)


But that still bumps it down to the next line.

What would be the easiest way in one line of text to tab to the right?

Jeff
http://www.willinois.com


Return to posts index

Sapphire Parker
Re: Class to tab?
on Aug 4, 2008 at 2:28:40 pm


Song - the Elephant
Bant - the Proclivities



line div {width:50%; float:left;}

Cheers,

SP
http://www.videoediting-direct.co.uk



Return to posts index

Sapphire Parker
Re: Class to tab?
on Aug 4, 2008 at 2:51:43 pm

Check this;

<div class="line">
<div >Song - the Elephant</div><div>Bant - the Proclivities</div>
</div>

Cheers,

SP
http://www.videoediting.co.uk





Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]