By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,931 Members | 1,247 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,931 IT Pros & Developers. It's quick & easy.

Html Style sheet help

P: n/a
Is there any way to have two style sheets applied to my web page
without using frames? ex. having them apply to individual frames
within a menu?

Thanks
Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
ni****@aol.com (Ryan) wrote:
Is there any way to have two style sheets applied to my web page
without using frames? ex. having them apply to individual frames
within a menu?


You're being unclear. Are you asking about "without using frames" or
are you asking about "apply[ing] to individual frames"? What does
"frames within a menu" mean?

You can apply as many style sheets to a page as you want, with
multiple <LINK> tags, and frames have nothing to do with it.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #2

P: n/a
On Mon, 19 Jan 2004 19:43:47 -0500, Harlan Messinger
<hm*******************@comcast.net> wrote:
ni****@aol.com (Ryan) wrote:
Is there any way to have two style sheets applied to my web page
without using frames? ex. having them apply to individual frames
within a menu?


You're being unclear. Are you asking about "without using frames" or
are you asking about "apply[ing] to individual frames"? What does
"frames within a menu" mean?

You can apply as many style sheets to a page as you want, with
multiple <LINK> tags, and frames have nothing to do with it.


Or does he mean having separate style for a navigation area, a content
area, a sidebar area? That's a big yes.

Ryan, let us know what effect you're after. Detail.
Jul 20 '05 #3

P: n/a
Sorry typo....
Is there any way to have two style sheets applied to my web page
without using frames? ex. having them apply to individual cells
within a table?


Thanks a lot
Jul 20 '05 #4

P: n/a
On 20 Jan 2004 06:18:15 -0800, Ryan <ni****@aol.com> wrote:
Sorry typo....
>> Is there any way to have two style sheets applied to my web page
>> without using frames? ex. having them apply to individual cells
>> within a table?


Thanks a lot

Ok.

If you want to have a region of your page have totally different styling
from another, use ids or classes.

Example. I have a content area and a navigation list. I want the nav list
to stand out, so different colors, different font, everything. In my HTML
I could add <div id="nav"> and </div> around my navigation stuff and style
it like:

#nav {
color: olive;
background-color: yellow;
font-family: 'Broken Hand', Shaky, cursive;
}

and there you go.

If you are doing a table (and I hope your table is really a tabular table)
you could assign an id to a single <td> but here I'd use a class, so you
can repeat the style in other cells.

<table>
<tr><th></th><th>John</th><th>Mary</th><th>Joan</th><tr>
<tr><th>Gender</th><td class="male">Male</td><td
class="female">Female</td><td class="female">Female</td></tr>
<tr><th>Age</th><td>42</td><td>24</td><td>86</td></tr>
</table>

and the style might be

..male {
color: blue;
}

..female {
color: #f7b;
}

Here, I could have styled the <th> elements separately from the <td>
elements too.

I hope that answers your question.
Jul 20 '05 #5

P: n/a
Neal <ne*****@spamrcn.com> wrote in message news:<op**************@news.rcn.com>...
On 20 Jan 2004 06:18:15 -0800, Ryan <ni****@aol.com> wrote:
Sorry typo....
>> Is there any way to have two style sheets applied to my web page
>> without using frames? ex. having them apply to individual cells
>> within a table?


Thanks a lot

Ok.

If you want to have a region of your page have totally different styling
from another, use ids or classes.

Example. I have a content area and a navigation list. I want the nav list
to stand out, so different colors, different font, everything. In my HTML
I could add <div id="nav"> and </div> around my navigation stuff and style
it like:

#nav {
color: olive;
background-color: yellow;
font-family: 'Broken Hand', Shaky, cursive;
}

and there you go.

If you are doing a table (and I hope your table is really a tabular table)
you could assign an id to a single <td> but here I'd use a class, so you
can repeat the style in other cells.

<table>
<tr><th></th><th>John</th><th>Mary</th><th>Joan</th><tr>
<tr><th>Gender</th><td class="male">Male</td><td
class="female">Female</td><td class="female">Female</td></tr>
<tr><th>Age</th><td>42</td><td>24</td><td>86</td></tr>
</table>

and the style might be

.male {
color: blue;
}

.female {
color: #f7b;
}

Here, I could have styled the <th> elements separately from the <td>
elements too.

I hope that answers your question.


You are SOOO awesome, I have been trying to figure that one out for
ever.... I knew there had to be a way to do it. Thank you so much
!!!!
Jul 20 '05 #6

P: n/a
On 21 Jan 2004 21:45:58 -0800, Ryan <ni****@aol.com> wrote:

You are SOOO awesome, I have been trying to figure that one out for
ever.... I knew there had to be a way to do it. Thank you so much
!!!!

Head... getting... bigger...

Seriously, check out http://www.htmldog.com - you'll explode with glee.
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.