473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Html Style sheet help

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
6 1656
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: TJD | last post by:
Can you set global page settings and then define unique settings such as paragraph styles in the same external style sheet?
3
by: Sean Brunnock | last post by:
I just wrote an interactive style sheet builder in order to help novices understand style sheets. I would be appreciative if folks could try it out and offer any comments. The URL for the...
1
by: blue | last post by:
My app draws a bunch of tables on the page and has a form for the user to enter data and submit. The form is contained within a User Control called DecisionCtl. When they submit the form, a bunch...
0
by: lltaylor | last post by:
Hello, I am in the process of creating a Portal Site, and so far so good, except I am having problems getting my style sheets to work. i am using the ASP.NET Portal Starter Kit as a reference,...
3
by: Colin Graham | last post by:
I there i was wondering if someone could help me. i have created a style sheet in asp.net and dragged it onto my screen thus creating my lines of code in the html. I do not however seem to have...
1
by: mfurey | last post by:
Can someone look at the following page and tell me what I did wrong with the style sheet linkage, or perhaps the document type declaration? I had this working properly off of one server, but now...
9
by: Radium | last post by:
Cascading Style Sheet is an extreme hazard to your privacy. It allows others on the internet to see your monitor and files. It allows them to copy images on your monitor to their computers. It...
2
by: Mick Walker | last post by:
I am totally new, never done any CSS (ok a tiny bit) before, so please bear with me.... I have been looking at the following: http://www.brainjar.com/css/positioning/absolutedemo.html And am...
1
by: abaybas | last post by:
I'm creating a page in which a certain "content" part of the page is refreshed using ajax. I do this by using a div#content, and it's child div#container. the code: ... ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.