CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 1st, 2003, 01:17 PM
laasunde laasunde is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 48 laasunde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 45 m 12 sec
Reputation Power: 5
css

This is probably a newbie question,
Code:
<style>

.menu {
	background-color:003366;
	width:150;
	color: white;
	text-align: center
}

.submenu {
	position:absolute;
	background-color:#222;
	width:150;
}
</style>
</head>


This code seems to work just fine with my menu's but ifI place it inside a css file like this :

Code:
.menu {
	background-color:003366;
	width:150;
	color: white;
	text-align: center
}

.submenu {
	position:absolute;
	background-color:#222;
	width:150;
}


and add
Code:
<link rel="stylesheet" href="style.css" type="text/css">


it doesnt work. What am I doing wrong ?

Reply With Quote
  #2  
Old October 1st, 2003, 01:31 PM
tomnie tomnie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 69 tomnie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 11 sec
Reputation Power: 5
try putting it in the top of the css. If it works than there's something wrong in your stylesheet.
b.t.w. width:150; should be width:150px;

Reply With Quote
  #3  
Old October 1st, 2003, 01:41 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,299 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 1 h 54 m 17 sec
Reputation Power: 760
That is interesting, especially since you don't have a type="text/css" in your <style> tag.

I'm also intrigued by your CSS. In .menu you use background-color:003366, then in .submenu you use background-color:#222. Strange that you use different styles of styles.

Also, no need for position:absolute unless you're going to give it a top/left or other coordinates (I don't think).

And proper CSS states you should have a color: with every background-color.
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
  #4  
Old October 1st, 2003, 01:58 PM
laasunde laasunde is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 48 laasunde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 45 m 12 sec
Reputation Power: 5
Quote:
Originally posted by tomnie
try putting it in the top of the css. If it works than there's something wrong in your stylesheet.
b.t.w. width:150; should be width:150px;


Thank you Sir, there was indeed an error in my css file.

Really appreciate your help

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > 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 1 hosted by Hostway