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 January 13th, 2004, 09:58 PM
orbitup orbitup is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 17 orbitup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
"over-ruling" definitions in CSS

I'm still new to CSS, but this struck me as odd:

if i have in my CSS:

img { border: none}

noborder {boder:none}


______

Now, if in the html i make a div class=noborder, the image in this div will still have a border... is there any way of "over-ruling" prior definitions that I'm missing?

Thanks, Matt

Reply With Quote
  #2  
Old January 13th, 2004, 10:05 PM
terminal's Avatar
terminal terminal is offline
nx
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: USA
Posts: 626 terminal Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 5 h 28 m 37 sec
Reputation Power: 0
Send a message via AIM to terminal
well, i believe thats cuz noborder needs a . before it

Reply With Quote
  #3  
Old January 13th, 2004, 10:36 PM
orbitup orbitup is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 17 orbitup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sorry, that was a typo

here is the exact prob im having now. im assuming its a simple solution, but im pretty confuddeled:

img {
border: solid white 1px;
}

.imgdown{
border: yellow;
}
<div class="imgdown">

<img src="http://www.asdfpics/yourguide.jpg" alt= ski>

</div>

______

This does not make the border yellow, and something even stranger is when i put border: yellow solid 1px; then a yellow border does appear, but completely not the right size and this whole thing is tripping me out:SSSS

matt

Reply With Quote
  #4  
Old January 13th, 2004, 11:11 PM
dope dope is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 11 dope User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
try
Code:
.imgdown img {
border: 1px solid yellow;
}


or if u don't want the border
Code:
.imgdown img {
border: 0;
}


addin the img there lets you control all imgs contained in the div with class=imgdown

Last edited by dope : January 13th, 2004 at 11:15 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > "over-ruling" definitions in 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 4 hosted by Hostway