menardmam
menardmam

Reputation: 9986

css override on a class

Here is the page I have a problem with

on each image (little square) i apply the class <div class="odeurbox"> that should be 67 pixel wide...the result is a box 480 pixel wide

Why is the style is superseded by something else.... obviously, there is something i dont understand from the CSS cascading ..

any light ?

p.s. i know you dont care, but it look good in dreamweaver... sob !

Upvotes: 0

Views: 883

Answers (3)

Matthew Rapati
Matthew Rapati

Reputation: 5686

You are missing a } bracket for the class:

.textplusbold {
    color: #002B4E;
    font-weight: bold;
}

Line 198 of the css file. :)

Upvotes: 1

Tomas Aschan
Tomas Aschan

Reputation: 60574

You haven't specified a style for the .odeurbox style. Add the following to your stylesheet:

.odeurbox { width: 67px; }

Upvotes: 0

Nick Bedford
Nick Bedford

Reputation: 4435

Well your .odeurbox class's width: 67px value should override any parent style width's. Have you got the width set on the odeurbox class?

Upvotes: 0

Related Questions