PDA

View Full Version : Footer text alignment stuff - [REP]



Jahova
12-07-2008, 12:14 PM
Ok, Thanks to some other members I have sorted my earlier question.
Now I need some help with my footer's text.

http://uploadpicz.com/images/UWB9298.png

As you can see, I have some text.
What I want to do, is leave that text their and add some more on the far right of that bar with a gap in the middle, understand?

What would I need to do / how can I do this.
I am using DIVs and CSS for this layout, so any help will be useful.

- Tom

--ss--
12-07-2008, 12:16 PM
<span style="text-align: right;">Test</span>
I'm sure that would work?

Source
12-07-2008, 12:17 PM
Use spans, one with float: left and one with float right.

Obviously you shouldnt put the style paramaters directly on the span... but I dunno your stylesheet layout.



<span style="float: left">TEXT ON LEFT</span>

<span style="float: right">TEXT ON RIGHT</span>



Put those in your footer div.

Jahova
12-07-2008, 12:32 PM
Thanks both of you guys, You will both be receiving rep =D
Kind of stupid, I forgot all about span.

Oddsocks
13-07-2008, 05:00 AM
More clean/effective way could be styling a UL to be your footers properties and add list's for both of the things like:




ul {
padding: 0;
margin: 0;
width: 405px;
}

ul li {
float:left;
width: 200px;
}





<ul>
<li>Left Text</li>
<li>Right Text</li>
</ul>


Just style the UL to the footers style, it creates a two column inteferance

Want to hide these adverts? Register an account for free!