|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
"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 |
|
#2
|
||||
|
||||
|
well, i believe thats cuz noborder needs a . before it
|
|
#3
|
|||
|
|||
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 |
|
#4
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > "over-ruling" definitions in CSS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|