Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: CSS and objects

Reply
Thread Tools

Re: CSS and objects

 
 
Steve Pugh
Guest
Posts: n/a
 
      08-07-2003
(Trevor) wrote:

>For example
>main.css ---> all common styles
>
>electronics.css --> specific to electronics, but it also has the
>properties from main.css


It really is better to remove the repeated styles from the specialised
stylesheets.

>One possibility is for multiple style sheets in one document, or to
>have one style sheet call another one (as a submodule).
>
>Can CSS handle anything like this?


Yes.
At the very top of your stylesheet include:
@import url(main.css)

Or do it in HTML and just include multiple <link> elements.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <> <http://steve.pugh.net/>
 
Reply With Quote
 
 
 
 
trevor oakley
Guest
Posts: n/a
 
      08-08-2003

"Steve Pugh" <> wrote in message
news:...
> (Trevor) wrote:
>
> >For example
> >main.css ---> all common styles
> >
> >electronics.css --> specific to electronics, but it also has the
> >properties from main.css

>
> It really is better to remove the repeated styles from the specialised
> stylesheets.
>
> >One possibility is for multiple style sheets in one document, or to
> >have one style sheet call another one (as a submodule).
> >
> >Can CSS handle anything like this?

>
> Yes.
> At the very top of your stylesheet include:
> @import url(main.css)


This is useful.

>
> Or do it in HTML and just include multiple <link> elements.
>
> Steve
>
> --
> "My theories appal you, my heresies outrage you,
> I never answer letters and you don't like my tie." - The Doctor
>
> Steve Pugh <> <http://steve.pugh.net/>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to store and represent 1 objects relationship to other objects pat.trainor@gmail.com Java 7 10-29-2012 02:12 PM
Passing data between objects and calling all objects of a class in turn ghoetker Python 1 08-25-2010 03:18 AM
class objects, method objects, function objects 7stud Python 11 03-20-2007 06:05 PM
Whining and bitching about MSIE 6 CSS bugs and CSS support =?ISO-8859-1?Q?G=E9rard_Talbot?= HTML 0 07-09-2005 06:48 AM
objects of objects, vectors and sessions bigbinc Java 3 11-18-2003 09:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57