HighDots Forums  

Common Styles

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Common Styles in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Common Styles - 12-10-2007 , 09:20 PM






Hello,

I am using 4 tables to display data lists.
All four tables have common and non common styles.

Consider all tables have Black background.
However, table 1 and 2 have red border and table 3 and 4 have blue
border.

Can I have two styles applied to the tables?
For example:

..Common {background-color: black}
..Table12 {border: solid 1px red}
..Table34 {border: solid 1px blue}

I would apply styles Common and Table12 to tables 1 and 2.
I would apply styles Common and Table34 to tables 3 and 4.

Is this possible?
If yes, is this the right way to do it?

Thanks,
Miguel

Reply With Quote
  #2  
Old   
rf
 
Posts: n/a

Default Re: Common Styles - 12-10-2007 , 09:29 PM







"shapper" <mdmoura (AT) gmail (DOT) com> wrote

Quote:
Hello,

I am using 4 tables to display data lists.
All four tables have common and non common styles.

Consider all tables have Black background.
However, table 1 and 2 have red border and table 3 and 4 have blue
border.

Can I have two styles applied to the tables?
For example:

.Common {background-color: black}
.Table12 {border: solid 1px red}
.Table34 {border: solid 1px blue}

I would apply styles Common and Table12 to tables 1 and 2.
I would apply styles Common and Table34 to tables 3 and 4.

Is this possible?
If yes, is this the right way to do it?
<table style="Common Table12">

--
Richard.




Reply With Quote
  #3  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Common Styles - 12-10-2007 , 09:39 PM



shapper wrote:
Quote:
Hello,

I am using 4 tables to display data lists.
All four tables have common and non common styles.

Consider all tables have Black background.
However, table 1 and 2 have red border and table 3 and 4 have blue
border.

Can I have two styles applied to the tables?
For example:

.Common {background-color: black}
.Table12 {border: solid 1px red}
.Table34 {border: solid 1px blue}

I would apply styles Common and Table12 to tables 1 and 2.
I would apply styles Common and Table34 to tables 3 and 4.

Is this possible?
If yes, is this the right way to do it?
Yes as Richard suggest, but pick better class names then Table12 & Table34.

Better names the describe the style usage, table.prices,
table.experimentData, table.specifications, ...


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #4  
Old   
rf
 
Posts: n/a

Default Re: Common Styles - 12-11-2007 , 04:21 AM




"Mark" <user (AT) example (DOT) net> wrote

Quote:
rf wrote:
"shapper" <mdmoura (AT) gmail (DOT) com> wrote in message
news:e9fcc694-5fbe-4044-a0ec-853398a34ac8 (AT) r60g2000hsc (DOT) googlegroups.com...
Hello,

I am using 4 tables to display data lists.
All four tables have common and non common styles.

Consider all tables have Black background.
However, table 1 and 2 have red border and table 3 and 4 have blue
border.

Can I have two styles applied to the tables?
For example:

.Common {background-color: black}
.Table12 {border: solid 1px red}
.Table34 {border: solid 1px blue}

I would apply styles Common and Table12 to tables 1 and 2.
I would apply styles Common and Table34 to tables 3 and 4.

Is this possible?
If yes, is this the right way to do it?

table style="Common Table12"

I think you mean:

table class="Common Table12"
Oh my. Of course :-)

--
Richard.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.