₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,285 members, 8,425,859 topics. Date: Saturday, 13 June 2026 at 08:50 AM

Toggle theme

Html Help - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersHtml Help (680 Views)

1 Reply

Html Help by DonSegmond(op): 6:23am On Jun 08, 2010
I'm one helluva programmer but suck at design.   I can get around my way HTML/CSS but don't have mastery thus the reason I ask for your help. smiley


<style>
span.left { position: absolute; left: 0; }
span.right {position: absolute; right: 0; }
div.line { position: relative; text-align: center; width: 100%; }
</style>

<div class="line">
<span  class="left">
Abc Foo Bar Feh
</span>

<span class="right">
Xyz Woo
</span>
</div>


When it renders
it renders like
Abc Foo Bar Feh _________________________________________ Xyz Woo

where _ is space
now this is fine, but if we shrink the width of the browser, then Xyz Woo and Bar Feh overlay each other.   

Where what I will like is something like
Abc Foo Bar Feh
______ Xyz Woo

Google does this with their menu
Web, Images, Videos, ______________________________ Search Settings, Sign In

Abeg help. :-D
Re: Html Help by DualCore1: 6:50am On Jun 08, 2010
<div id="left" style="float:left"><p>Abc Foo Bar Feh</p></div>
<div id ="right" style="float:right"><p>Xyz Woo</p></div>
Re: Html Help by DonSegmond(op): 7:20pm On Jun 08, 2010
thanks man, another friend just gave me the solution too, same exact as yours. thanks again.
1 Reply

How To Integrate Sms To A Online Registration Form (php, Html, Aspx Etc)How To: Create A Simple Hover Button With Html And CssHow To Create An Autoresponder In An Html Form234

Getting The Height Of A DivJust Built An Os, Yay!Php And Asap.net Together