(Msg. 1) Posted: Thu Aug 28, 2008 9:33 am
Post subject: How can we isolate one table when using css? Archived from groups: microsoft>public>frontpage>client (more info?)
Hello,
I've been following the w3schools great tutorials on css. I want to put a
horizontal menu in my page but when I insert it, it makes the values apply to
ALL links on the page! This is the normal page before (it's a test page):
http://www.theenginerevolution.com/ord.html
(Msg. 2) Posted: Thu Aug 28, 2008 4:37 pm
Post subject: Re: How can we isolate one table when using css? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Give the table a class name, and then just apply the CSS to only that class.
"Pinkpanther" <Pinkpanther DeleteThis @discussions.microsoft.com> wrote in message
news:E8C29E10-F9BE-4AE2-9EF3-1ACF769F15D8@microsoft.com...
> Hello,
>
> I've been following the w3schools great tutorials on css. I want to put a
> horizontal menu in my page but when I insert it, it makes the values apply to
> ALL links on the page! This is the normal page before (it's a test page):
> http://www.theenginerevolution.com/ord.html >
> and this is the page when I have put the css in and all links have gone
> purple etc.: http://www.theenginerevolution.com/ord-2.html >
> Could someone advise how to isolate the values to only apply to the
> horizontal purple navbar?
>
> Many thanks for your time.
(Msg. 3) Posted: Thu Aug 28, 2008 5:28 pm
Post subject: Re: How can we isolate one table when using css? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Thank you very much for your answer. Does this mean that where we would
normally write for a table in our webpage:
<table> xxxxxxxxxx etc.
</table>
that I will write, in code on my webpage, for my specific table:
> Give the table a class name, and then just apply the CSS to only that class.
>
> < table class="mytable">
>
>
> ..mytable{
>
> css stuff here
>
> }
>
>
> --
>
> Steve Easton
> Microsoft MVP FrontPage
> FP Cleaner
> http://www.95isalive.com/fixes/fpclean.htm > Hit Me FP
> http://www.95isalive.com/fixes/HitMeFP.htm >
>
> "Pinkpanther" <Pinkpanther RemoveThis @discussions.microsoft.com> wrote in message
> news:E8C29E10-F9BE-4AE2-9EF3-1ACF769F15D8@microsoft.com...
> > Hello,
> >
> > I've been following the w3schools great tutorials on css. I want to put a
> > horizontal menu in my page but when I insert it, it makes the values apply to
> > ALL links on the page! This is the normal page before (it's a test page):
> > http://www.theenginerevolution.com/ord.html > >
> > and this is the page when I have put the css in and all links have gone
> > purple etc.: http://www.theenginerevolution.com/ord-2.html > >
> > Could someone advise how to isolate the values to only apply to the
> > horizontal purple navbar?
> >
> > Many thanks for your time.
>
>
>
(Msg. 4) Posted: Fri Aug 29, 2008 4:31 am
Post subject: Re: How can we isolate one table when using css? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
When you apply a css class (like you did for all a links) it applies to the whole page
Create a style class in the head section for the links in the horizontal nav
<style type="text/css">
a.white {color: white; text-decoration: none}
a.white:link {color: white; text-decoration: none}
a.white:visited {color: white; text-decoration: none}
a.white:hover {color: white; text-decoration: underline}
a.white:active {color: white; text-decoration: none}
</style>
And apply the class to the links in the horizontal nav
<a href="yourlink.htm" class="white">
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
"Pinkpanther" <Pinkpanther.TakeThisOut@discussions.microsoft.com> wrote in message news:E8C29E10-F9BE-4AE2-9EF3-1ACF769F15D8@microsoft.com...
| Hello,
|
| I've been following the w3schools great tutorials on css. I want to put a
| horizontal menu in my page but when I insert it, it makes the values apply to
| ALL links on the page! This is the normal page before (it's a test page):
| http://www.theenginerevolution.com/ord.html |
| and this is the page when I have put the css in and all links have gone
| purple etc.: http://www.theenginerevolution.com/ord-2.html |
| Could someone advise how to isolate the values to only apply to the
| horizontal purple navbar?
|
| Many thanks for your time.
(Msg. 5) Posted: Fri Aug 29, 2008 9:44 am
Post subject: Re: How can we isolate one table when using css? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
All links within this table will be styled according to this new rule.
--
Murray
MVP Expression Web
"Stefan B Rusynko" <sbr_enjoy.TakeThisOut@hotmail.com> wrote in message
news:eL9QsGbCJHA.1628@TK2MSFTNGP03.phx.gbl...
> When you apply a css class (like you did for all a links) it applies to
> the whole page
>
> Create a style class in the head section for the links in the horizontal
> nav
> <style type="text/css">
> a.white {color: white; text-decoration: none}
> a.white:link {color: white; text-decoration: none}
> a.white:visited {color: white; text-decoration: none}
> a.white:hover {color: white; text-decoration: underline}
> a.white:active {color: white; text-decoration: none}
> </style>
>
> And apply the class to the links in the horizontal nav
> <a href="yourlink.htm" class="white">
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> _____________________________________________
>
>
> "Pinkpanther" <Pinkpanther.TakeThisOut@discussions.microsoft.com> wrote in message
> news:E8C29E10-F9BE-4AE2-9EF3-1ACF769F15D8@microsoft.com...
> | Hello,
> |
> | I've been following the w3schools great tutorials on css. I want to put
> a
> | horizontal menu in my page but when I insert it, it makes the values
> apply to
> | ALL links on the page! This is the normal page before (it's a test
> page):
> | http://www.theenginerevolution.com/ord.html > |
> | and this is the page when I have put the css in and all links have gone
> | purple etc.: http://www.theenginerevolution.com/ord-2.html > |
> | Could someone advise how to isolate the values to only apply to the
> | horizontal purple navbar?
> |
> | Many thanks for your time.
>
>
(Msg. 6) Posted: Fri Aug 29, 2008 5:10 pm
Post subject: Re: How can we isolate one table when using css? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Thank you for your replies. At the moment I am still working on Stefan's
method, and at last I feel I'm getting somewhere
I've uploaded a tiny, simple page with BLUE links successfully 'connected'
to the stylesheet, but I still can't stop other <li> "listed items" from
being displayed in the same way.
I've made the page very simple, and would be really grateful if someone has
the time to have a quick look and say how to get the <li> rule to apply ONLY
to the links governed by the stylesheet (which is included in the <head>)
The page is at: http://www.theenginerevolution.com/cssupload.htm
Many thanks indeed for your time.
"Stefan B Rusynko" wrote:
> When you apply a css class (like you did for all a links) it applies to the whole page
>
> Create a style class in the head section for the links in the horizontal nav
> <style type="text/css">
> a.white {color: white; text-decoration: none}
> a.white:link {color: white; text-decoration: none}
> a.white:visited {color: white; text-decoration: none}
> a.white:hover {color: white; text-decoration: underline}
> a.white:active {color: white; text-decoration: none}
> </style>
>
> And apply the class to the links in the horizontal nav
> <a href="yourlink.htm" class="white">
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> _____________________________________________
>
>
> "Pinkpanther" <Pinkpanther DeleteThis @discussions.microsoft.com> wrote in message news:E8C29E10-F9BE-4AE2-9EF3-1ACF769F15D8@microsoft.com...
> | Hello,
> |
> | I've been following the w3schools great tutorials on css. I want to put a
> | horizontal menu in my page but when I insert it, it makes the values apply to
> | ALL links on the page! This is the normal page before (it's a test page):
> | http://www.theenginerevolution.com/ord.html > |
> | and this is the page when I have put the css in and all links have gone
> | purple etc.: http://www.theenginerevolution.com/ord-2.html > |
> | Could someone advise how to isolate the values to only apply to the
> | horizontal purple navbar?
> |
> | Many thanks for your time.
>
>
>
(Msg. 7) Posted: Sat Aug 30, 2008 4:37 am
Post subject: Re: How can we isolate one table when using css? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Use Murray's approach to limit the li style to your horizontal nav table
<style type="text/css">
table#white a {color: white; text-decoration: none}
table#white a:link {color: white; text-decoration: none}
table#white a:visited {color: white; text-decoration: none}
table#white a:hover {color: white; text-decoration: underline}
table#white a:active {color: white; text-decoration: none}
table#white li {display: inline }
</style>
BTW
The same effect can be accomplished w/o a table by using div#white in the style sheet instead of table#white and
<div class="white">
<ul><li><a .... >Link 1</a></li><li><a .... >Link 2</a></li></ul>
</div>
Or with a unique ID instead of a style class by using say #topnav in the style sheet instead of table#white and
<div id="topnav">
<ul><li><a .... >Link 1</a></li><li><a .... >Link 2</a></li></ul>
</div>
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
"Pinkpanther" <Pinkpanther DeleteThis @discussions.microsoft.com> wrote in message news:DE39DD1A-790C-4672-9B6C-1BF2F29C72D4@microsoft.com...
| Thank you for your replies. At the moment I am still working on Stefan's
| method, and at last I feel I'm getting somewhere | I've uploaded a tiny, simple page with BLUE links successfully 'connected'
| to the stylesheet, but I still can't stop other <li> "listed items" from
| being displayed in the same way.
| I've made the page very simple, and would be really grateful if someone has
| the time to have a quick look and say how to get the <li> rule to apply ONLY
| to the links governed by the stylesheet (which is included in the <head>)
| The page is at: http://www.theenginerevolution.com/cssupload.htm |
|
| Many thanks indeed for your time.
|
|
|
| "Stefan B Rusynko" wrote:
|
| > When you apply a css class (like you did for all a links) it applies to the whole page
| >
| > Create a style class in the head section for the links in the horizontal nav
| > <style type="text/css">
| > a.white {color: white; text-decoration: none}
| > a.white:link {color: white; text-decoration: none}
| > a.white:visited {color: white; text-decoration: none}
| > a.white:hover {color: white; text-decoration: underline}
| > a.white:active {color: white; text-decoration: none}
| > </style>
| >
| > And apply the class to the links in the horizontal nav
| > <a href="yourlink.htm" class="white">
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > "Pinkpanther" <Pinkpanther DeleteThis @discussions.microsoft.com> wrote in message
news:E8C29E10-F9BE-4AE2-9EF3-1ACF769F15D8@microsoft.com...
| > | Hello,
| > |
| > | I've been following the w3schools great tutorials on css. I want to put a
| > | horizontal menu in my page but when I insert it, it makes the values apply to
| > | ALL links on the page! This is the normal page before (it's a test page):
| > | http://www.theenginerevolution.com/ord.html | > |
| > | and this is the page when I have put the css in and all links have gone
| > | purple etc.: http://www.theenginerevolution.com/ord-2.html | > |
| > | Could someone advise how to isolate the values to only apply to the
| > | horizontal purple navbar?
| > |
| > | Many thanks for your time.
| >
| >
| >
(Msg. 8) Posted: Wed Sep 03, 2008 4:16 pm
Post subject: Re: How can we isolate one table when using css? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Stefan, Thank you very much for this great reply. I lost this thread and
have been trying to find it since last week - the email notifications were
just bringing up a blank page... is there any way to 'favorite' particular
threads in this forum??
Many thanks for all your great help!
"Stefan B Rusynko" wrote:
> Use Murray's approach to limit the li style to your horizontal nav table
> <style type="text/css">
> table#white a {color: white; text-decoration: none}
> table#white a:link {color: white; text-decoration: none}
> table#white a:visited {color: white; text-decoration: none}
> table#white a:hover {color: white; text-decoration: underline}
> table#white a:active {color: white; text-decoration: none}
> table#white li {display: inline }
> </style>
>
> Minimal code below:
> <table class="white">
> <tr><td><ul><li><a .... >Link 1</a></li><li><a .... >Link 2</a></li></ul></td></tr>
> </table>
>
> BTW
> The same effect can be accomplished w/o a table by using div#white in the style sheet instead of table#white and
> <div class="white">
> <ul><li><a .... >Link 1</a></li><li><a .... >Link 2</a></li></ul>
> </div>
> Or with a unique ID instead of a style class by using say #topnav in the style sheet instead of table#white and
> <div id="topnav">
> <ul><li><a .... >Link 1</a></li><li><a .... >Link 2</a></li></ul>
> </div>
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> _____________________________________________
>
>
> "Pinkpanther" <Pinkpanther.DeleteThis@discussions.microsoft.com> wrote in message news:DE39DD1A-790C-4672-9B6C-1BF2F29C72D4@microsoft.com...
> | Thank you for your replies. At the moment I am still working on Stefan's
> | method, and at last I feel I'm getting somewhere > | I've uploaded a tiny, simple page with BLUE links successfully 'connected'
> | to the stylesheet, but I still can't stop other <li> "listed items" from
> | being displayed in the same way.
> | I've made the page very simple, and would be really grateful if someone has
> | the time to have a quick look and say how to get the <li> rule to apply ONLY
> | to the links governed by the stylesheet (which is included in the <head>)
> | The page is at: http://www.theenginerevolution.com/cssupload.htm > |
> |
> | Many thanks indeed for your time.
> |
> |
> |
> | "Stefan B Rusynko" wrote:
> |
> | > When you apply a css class (like you did for all a links) it applies to the whole page
> | >
> | > Create a style class in the head section for the links in the horizontal nav
> | > <style type="text/css">
> | > a.white {color: white; text-decoration: none}
> | > a.white:link {color: white; text-decoration: none}
> | > a.white:visited {color: white; text-decoration: none}
> | > a.white:hover {color: white; text-decoration: underline}
> | > a.white:active {color: white; text-decoration: none}
> | > </style>
> | >
> | > And apply the class to the links in the horizontal nav
> | > <a href="yourlink.htm" class="white">
> | >
> | > --
> | >
> | > _____________________________________________
> | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> | > "Warning - Using the F1 Key will not break anything!" (-;
> | > _____________________________________________
> | >
> | >
> | > "Pinkpanther" <Pinkpanther.DeleteThis@discussions.microsoft.com> wrote in message
> news:E8C29E10-F9BE-4AE2-9EF3-1ACF769F15D8@microsoft.com...
> | > | Hello,
> | > |
> | > | I've been following the w3schools great tutorials on css. I want to put a
> | > | horizontal menu in my page but when I insert it, it makes the values apply to
> | > | ALL links on the page! This is the normal page before (it's a test page):
> | > | http://www.theenginerevolution.com/ord.html > | > |
> | > | and this is the page when I have put the css in and all links have gone
> | > | purple etc.: http://www.theenginerevolution.com/ord-2.html > | > |
> | > | Could someone advise how to isolate the values to only apply to the
> | > | horizontal purple navbar?
> | > |
> | > | Many thanks for your time.
> | >
> | >
> | >
>
>
>
All times are: Eastern Time (US & Canada) (change) Goto page 1, 2
Page 1 of 2
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum