₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,970 members, 8,514,731 topics. Date: Saturday, 07 November 2026 at 08:50 AM

Toggle theme

Html Help - Webmasters - Nairaland

Nairaland Forum › Science/Technology › Webmasters › Html Help (695 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 Css • How To Create An Autoresponder In An Html Form • 2 • 3 • 4

Domain Disputes - Reverse Domain Name Hijacking Problem • Do You Need A Web Developer? • All In One Web Design Video Training