PDA

View Full Version : Do i use CSS for this?!


djshongo
03-30-2009, 12:31 PM
Hi,

I have one editable region in my website (the main content centre), and i have some CSS rules applied to it (font size, colour etc). Altho my CSS is VERY basic.

However, when i insert a table into the editable region, the CSS rules dont apply to it.. like font size, colour etc.. Is this because the content is inside a table?? If, so how do i resolve this issue so that any information inside the table also use the CSS rules?

As i said earlier, im new to coding and i appreciate any help :)

Thanks in advance!

mangofreak
03-30-2009, 02:50 PM
You can use a generic rule for all tables or a rule only for the table you are inserting.

<!--
Generic
table {font-family....; font-size:....;

specific, you need to assign and ID name to your table first, then:
#table_mytable{font-family...; font-size:...}

}
-->

hope it helps

Corrosive
03-30-2009, 03:03 PM
You can use a generic rule for all tables or a rule only for the table you are inserting.

<!--
Generic
table {font-family....; font-size:....;

specific, you need to assign and ID name to your table first, then:
#table_mytable{font-family...; font-size:...}

}
-->

hope it helps

Or you could use divs instead of tables :wink:

djshongo
03-30-2009, 03:40 PM
thank you guys ill try that now and see how i get on!!

:))