redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers

Ask your IT question here

div in html code


Goto page 1, 2  Next
 
Post new topic   Reply to topic    Programming Forums -> HTML forum
View previous topic :: View next topic  
Author Message
Lusis Backwood JR
Enthusiastic Coder


Joined: 26 May 2006
Posts: 87
Location: United States
Hello
I'm trying to code up http://www.senworks.com/sands_beta/header_beta2.html in css. If i break it into 4 pieces, with the white piece on the left where the logo goes, then the sales section, the lease section, then the quick search section... I could put those in a div but how? Do I set the div to inline, then just put each one as a header tag floated left and margin on them to make them go off the left of the site appropriately?

Reply with quote
 
AmeliaR
Enthusiastic Coder


Joined: 31 May 2006
Posts: 142
<div id="header"><h2>Sales</h2><ul><li>...</ul><h2>Lease</h2><ul><li>...</ul></div>
IR on the h2's and float everything left
Entire background on #header and padding-left on #header to position them

Reply with quote
 
Lusis Backwood JR
Enthusiastic Coder


Joined: 26 May 2006
Posts: 87
Location: United States
What's IR?
Reply with quote
 
AmeliaR
Enthusiastic Coder


Joined: 31 May 2006
Posts: 142
image replacement
Reply with quote
 
Lusis Backwood JR
Enthusiastic Coder


Joined: 26 May 2006
Posts: 87
Location: United States
I don't even know what you mean by that Smile
Reply with quote
 
AmeliaR
Enthusiastic Coder


Joined: 31 May 2006
Posts: 142
Means you hide the text inside the h2's and replace it with an image (bg image)
Reply with quote
 
Lusis Backwood JR
Enthusiastic Coder


Joined: 26 May 2006
Posts: 87
Location: United States
Ah
Yeah, I'm going to have that image with Sales, Lease, and Quick Search already in it
The rest I can do in <ul>
So you're saying float all of the H1, h2, etc left... and then use margin-left to get them lined up correctly?

Reply with quote
 
AmeliaR
Enthusiastic Coder


Joined: 31 May 2006
Posts: 142
Yeah
Reply with quote
 
Lusis Backwood JR
Enthusiastic Coder


Joined: 26 May 2006
Posts: 87
Location: United States
Awesome, thanks
Reply with quote
 
AmeliaR
Enthusiastic Coder


Joined: 31 May 2006
Posts: 142
Or padding left on the container
Http://www.mezzoblue.com/tests/revised-image-replacement/
And use http://positioniseverything.net/easyclearing.html to clear the header
(since all it's children are floated it will collapse unless you add the easyclearing thingy)

Reply with quote
 
Page 1 of 2 Goto page 1, 2  Next
Post new topic   Reply to topic    Programming Forums -> HTML forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group