Topic: style trouble

Hi,

I try to add a new style : alert

I add in oxygen_cs.css

SPAN.alert {font-weight: bold; COLOR: #FF0000}

--> the color is OK but not the font-weight

Where should i do a correction ?

Tx

2

Re: style trouble

That would depend where in the markup you are using the span.

Re: style trouble

Means ?

I call it by
<span class="alert">blablabla</span>

4

Re: style trouble

Yes but where are you using the span. On what page, between what other tags?

Re: style trouble

Ok so I used inside a plug-in module

always between tags  <p> and  </p>

for some inside
<th class="tcl" scope="col">
</th>

for others inside
<td> and </td>

6

Re: style trouble

You style is being overruled by this in base_admin.css
#adminconsole FIELDSET TD SPAN, #adminconsole FIELDSET TH SPAN {DISPLAY: block; FONT-SIZE: 1em; FONT-WEIGHT: normal}

Try putting your style at the end of base_admin.css like this

#adminconsole TD SPAN.alert, #adminconsole TH SPAN.alert {FONT-WEIGHT: bold}

Re: style trouble

Ok thanx

I add the line
#adminconsole TD SPAN.alert, #adminconsole TH SPAN.alert {FONT-WEIGHT: bold}

just before (and not at the end of base_admin.css)
#adminconsole FIELDSET TD SPAN, #adminconsole FIELDSET TH SPAN {DISPLAY: block; FONT-SIZE: 1em; FONT-WEIGHT: normal}

and it works