- This topic is empty.
-
AuthorPosts
-
October 1, 2011 at 12:39 am #34590
DonL
MemberHi,
I recently started experimenting with CSS after years of Front Page and other WYSIWYG editors. I created an external style sheet which I link to my web pages to format text, links, border, etc. I’ve also been successful at using inline styles for tables to set up borders, float etc. So the next logical step would be to put those inline values in a separate class on the external sheet. I’ve created a class called “table” that has the exact same parameters as the inline style but it has no effect. All the other classes work fine so I know the sheet itself is good. I’ve tried putting class=”table” after
The tables are very simple – one column and two rows. The top cell has an image and the bottom cell has text.
Here’s my inline style. (carat) table style=”border-collapse: collapse; border:5px solid red; float:right” width=”34%” id=”AutoNumber2″ (close carat) (I left the <> off so the message would publish.)
Here’s my table class on the CSS sheet.
/*FORMATS TABLE PROPERTIES */
.table {
border-collapse:collapse;
border:5px solid red;
width:34%;
float:right;
}The website is http://www.offthebeatenpath.ws.
Thanks for your help…..Don in St. Paul, MN
October 1, 2011 at 1:09 am #88321DonL
Member