Advanced Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignAdvanced Web Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 3rd, 2005, 08:44 AM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 5
Send a message via MSN to Spongy
3 blocks with CSS

Help!

Just solved my last problem (see last topic) and now I ran into another...

Code:
<div id="container">
	<div id="insidecontainer">
		<div id="top_nieuws">NEWS</div>
		<div id="top">
			<h1>Website</h1>
		</div>
		<div id="top_contact">CONTACT</div>
	</div>
</div>

The html is made up with the following CSS-rules.
Code:
#container {
	width: 740px;
	min-height: 380px;
	_height: 380px;
	margin: auto;
}

#insidecontainer {
	margin: 0;
	padding: 0;
	min-height: 45px;
	_height: 45px;
}
#top {
	min-height: 45px;
	_height: 45px;
	margin-left:100px;
	margin-right: 100px;
}
#top_nieuws {
	width: 100px;
	float: left;
}
#top_contact {
	width: 100px;
	float: left;
}
#top h1 {
	padding: 0;
	margin: 0;
	text-align: center;
}

I want 2 boxes on each side of the "top"-div of 100px. What happens now is that the "top_contact"-div is pushed down.
Hope someone can help me!

Thanks in advance,

Spongy
__________________
Work to live, don't live to work

Reply With Quote
  #2  
Old January 4th, 2005, 08:54 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Try shuffling the order around...

Code:
<div id="container">
	<div id="insidecontainer">
		<div id="top_nieuws">NEWS</div>
		<div id="top_contact">CONTACT</div>
		<div id="top">
			<h1>Website</h1>
		</div>
	</div>
</div>


Don't forget float:right

Code:
#top_contact {
	width: 100px;
	float: right;
}

Reply With Quote
  #3  
Old January 5th, 2005, 05:17 AM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 5
Send a message via MSN to Spongy
Thanks a lot! That does the trick!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignAdvanced Web Development > 3 blocks with CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT