Get exclusive CAP network offers from top brands

View CAP Offers

Stumped

ixian asked 4 years ago
I hope somebody can help me as I am a bit stumped on this one.

I’m using two different nested tables in one of my sites. They each have their on id. When I try style the borders using an external style sheet and give each table it’s own border style it will always revert to the last css style.

How do I get around this?

7 Answers
CWC-Martyn answered 4 years ago
I might be wrong on this but it may have something to do with giving them both ID’s. Try giving them a class instead and changing the CSS to reflect the class (.cssname instead of #cssname)

Let me know if that works?

If it doesnt work, the above is a load of old tosh. :hattip:

ixian answered 4 years ago
Thanks for the reply.

I have tried that and it does not work.

I have searched Google and W3Schools, they tell you how to style a border but not two different borders on different tables, so maybe it can’t be done.

slotplayer answered 4 years ago
Could it be that one of the rules has a syntax error?
It would be good to see the css and tables but this worked. Not sure if it what you want.

[HTML]

cell item cell item cell item

cell data cell data cell data

heres the css from the external style sheet
.t1 { border: 4px solid blue; }
.t2 { border: 2px solid red; }
.t1 td { border: 1px solid green; }
.t2 td { border: 1px dashed black; }[/HTML]

ixian answered 4 years ago
Thanks slotplayer

I have seen the error of my ways.

Stupid me had a comma in the mix.

Quote:
.t1 td, { border: 1px solid green; }

I feel like a twerp. :bigsmile: Thanks for the help.

CWC-Martyn answered 4 years ago
haha!

Ixian you TWERP!

The big font is justified in this case :hattip:

ixian answered 4 years ago
CWC-Martyn;204141 wrote:
haha!

Ixian you TWERP!

The big font is justified in this case :hattip:

Thanks Martyn :roflmao:

slotplayer answered 4 years ago
thats ok I been a twerp many times <span title=” title=”” class=”bbcode_smiley” />