HighDots Forums  

Please help a newbie

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


Discuss Please help a newbie in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Grytpype-Thynne
 
Posts: n/a

Default Please help a newbie - 08-15-2003 , 06:44 AM






Hello,

I am thinking of converting the site I have done for Animals in Distress
to CSS, at the moment I am playing around with the top menu, which I
would like to keep as most of the visitors have said it makes for easy
navigation.

http://www.animals-in-distress.net/add_url_css.htm I would like to add a
rule to the style sheet that removes the underline from the links only in
the top menu but whatever I try they either stay or are removed from all
the links.

Can someone tell me what I need to do.

I am trying to work through the site sorting one thing at a time.

Thanks

Gerald

Reply With Quote
  #2  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: Please help a newbie - 08-15-2003 , 07:36 AM






"Grytpype-Thynne" <geraldIDONTWANTSPAMbramwell (AT) hotmail (DOT) com> wrote

Quote:
Hello,

I am thinking of converting the site I have done for Animals in Distress
to CSS, at the moment I am playing around with the top menu, which I
would like to keep as most of the visitors have said it makes for easy
navigation.

http://www.animals-in-distress.net/add_url_css.htm I would like to add a
rule to the style sheet that removes the underline from the links only in
the top menu but whatever I try they either stay or are removed from all
the links.
Are you _sure_ you want to remove the underlines?
Had you considered the points noted by Jukka Korpela
in "Links want to be links", at..
http://www.cs.tut.fi/~jkorpela/www/l...tml#underline?

There are compelling resons _not_ to remove
the underlines from links _or_ to make them look
otherwise unlike links..

If you are absolutely set on the idea, you
can achieve it by using a simple style change

a { text-underline: none; }

Of course, to get predictable rendering of styles, it is
important to use it in valid html, which that page is not..
http://validator.w3.org/check?uri=ht...distress.net%2
Fadd_url_css.htm

HTH

--
Andrew Thompson
http://www.lensescapes.com/
http://www.physci.org/
http://www.1point1c.org/





Reply With Quote
  #3  
Old   
Stephen Poley
 
Posts: n/a

Default Re: Please help a newbie - 08-15-2003 , 08:29 AM



On Fri, 15 Aug 2003 12:36:41 GMT, "Andrew Thompson"
<andrew64 (AT) bigNOSPAMpond (DOT) com> wrote:

Quote:
"Grytpype-Thynne" <geraldIDONTWANTSPAMbramwell (AT) hotmail (DOT) com> wrote in message
news:MPG.19a6d7ec3ac9d9bc9896ea (AT) news (DOT) individual.net...

http://www.animals-in-distress.net/add_url_css.htm I would like to add a
rule to the style sheet that removes the underline from the links only in
the top menu but whatever I try they either stay or are removed from all
the links.

Are you _sure_ you want to remove the underlines?
Had you considered the points noted by Jukka Korpela
in "Links want to be links", at..
http://www.cs.tut.fi/~jkorpela/www/l...tml#underline?
Yes, but for a distinctive separate menu I don't think there's anything
wrong with removing the underlines.

Quote:
If you are absolutely set on the idea, you
can achieve it by using a simple style change

a { text-underline: none; }
I gather he's tried that.

Given there is already a class="menu-top" use the style
..menu-top a { text-underline: none; } to affect the links in this table
only.

Also, scrap all the <th class="menu-all"> elements. Firstly they
shouldn't be TH - they should be TD - and with the class already defined
on the table, you don't need a class on every cell.

Some people will probably also wonder whether a table is appropriate at
all, but I don't think it does any harm here.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #4  
Old   
Leif B. Kristensen
 
Posts: n/a

Default Re: Please help a newbie - 08-15-2003 , 08:50 AM



On Fri, 15 Aug 2003 12:44:15 +0100, Grytpype-Thynne
<geraldIDONTWANTSPAMbramwell (AT) hotmail (DOT) com> wrote:

Quote:
Hello,

I am thinking of converting the site I have done for Animals in Distress
to CSS, at the moment I am playing around with the top menu, which I
would like to keep as most of the visitors have said it makes for easy
navigation.

http://www.animals-in-distress.net/add_url_css.htm I would like to add a
rule to the style sheet that removes the underline from the links only in
the top menu but whatever I try they either stay or are removed from all
the links.

Can someone tell me what I need to do.
Gerald,
try this:

th.menu-all a:link {
text-decoration: none;
}

regards,
--
Leif Biberg Kristensen - http://solumslekt.org/
Validare necesse est.
mail to leif at solumslekt dot org


Reply With Quote
  #5  
Old   
G Bramwell
 
Posts: n/a

Default Re: Please help a newbie - 08-15-2003 , 02:01 PM



In article <8enpjv8uohauu37j5ptvi5qbdm0sh0s7md (AT) 4ax (DOT) com>,
sbpoley (AT) xs4all (DOT) nl says...
Quote:
On Fri, 15 Aug 2003 12:36:41 GMT, "Andrew Thompson"
andrew64 (AT) bigNOSPAMpond (DOT) com> wrote:

"Grytpype-Thynne" <geraldIDONTWANTSPAMbramwell (AT) hotmail (DOT) com> wrote in message
news:MPG.19a6d7ec3ac9d9bc9896ea (AT) news (DOT) individual.net...

http://www.animals-in-distress.net/add_url_css.htm I would like to add a
rule to the style sheet that removes the underline from the links only in
the top menu but whatever I try they either stay or are removed from all
the links.

Are you _sure_ you want to remove the underlines?
Had you considered the points noted by Jukka Korpela
in "Links want to be links", at..
http://www.cs.tut.fi/~jkorpela/www/l...tml#underline?

Yes, but for a distinctive separate menu I don't think there's anything
wrong with removing the underlines.

If you are absolutely set on the idea, you
can achieve it by using a simple style change

a { text-underline: none; }

I gather he's tried that.

Given there is already a class="menu-top" use the style
.menu-top a { text-underline: none; } to affect the links in this table
only.

Also, scrap all the <th class="menu-all"> elements. Firstly they
shouldn't be TH - they should be TD - and with the class already defined
on the table, you don't need a class on every cell.

Some people will probably also wonder whether a table is appropriate at
all, but I don't think it does any harm here.


Thanks to you all for the help. If a table is not appropriate how would I
get the same effect without using tables?

Gerald


Reply With Quote
  #6  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: Please help a newbie - 08-15-2003 , 09:00 PM



"G Bramwell" <gedbee (AT) lycos (DOT) co.uk> wrote

Quote:
In article <8enpjv8uohauu37j5ptvi5qbdm0sh0s7md (AT) 4ax (DOT) com>,
sbpoley (AT) xs4all (DOT) nl says...
On Fri, 15 Aug 2003 12:36:41 GMT, "Andrew Thompson"
andrew64 (AT) bigNOSPAMpond (DOT) com> wrote:
....
Some people will probably also wonder whether a table is appropriate at
all, but I don't think it does any harm here.


Thanks to you all for the help. If a table is not appropriate how would I
get the same effect without using tables?
I am currently writing a site where I am using CSS to
layout information and using tables _only_ for tabular data.
Even then, I feel that the transformation of a table of
links to a styles based layout is questionable, after all
the link table is primarily holding data - there is little
or no 'fluff' to it....

My recommendation is that you concentrate on
other aspects of your site before losing sleep over
whether to trransform the links from a table.

[ This of course, is the cue for ..whoever has a bee in
their bonnet re 'tables of links', to jump in and tell me
how wrong I am. ;-) ]

--
Andrew Thompson
http://www.lensescapes.com/
http://www.physci.org/
http://www.1point1c.org/





Reply With Quote
  #7  
Old   
Grytpype-Thynne
 
Posts: n/a

Default Re: Please help a newbie - 08-16-2003 , 10:24 AM



In article <nfg%a.36893$bo1.15366 (AT) news-server (DOT) bigpond.net.au>, andrew64
@bigNOSPAMpond.com says...
Quote:
"G Bramwell" <gedbee (AT) lycos (DOT) co.uk> wrote in message
news:MPG.19a73e522cafe378989680 (AT) news (DOT) zen.co.uk...
In article <8enpjv8uohauu37j5ptvi5qbdm0sh0s7md (AT) 4ax (DOT) com>,
sbpoley (AT) xs4all (DOT) nl says...
On Fri, 15 Aug 2003 12:36:41 GMT, "Andrew Thompson"
andrew64 (AT) bigNOSPAMpond (DOT) com> wrote:
...
Some people will probably also wonder whether a table is appropriate at
all, but I don't think it does any harm here.


Thanks to you all for the help. If a table is not appropriate how would I
get the same effect without using tables?

I am currently writing a site where I am using CSS to
layout information and using tables _only_ for tabular data.
Even then, I feel that the transformation of a table of
links to a styles based layout is questionable, after all
the link table is primarily holding data - there is little
or no 'fluff' to it....

My recommendation is that you concentrate on
other aspects of your site before losing sleep over
whether to trransform the links from a table.

[ This of course, is the cue for ..whoever has a bee in
their bonnet re 'tables of links', to jump in and tell me
how wrong I am. ;-) ]

--
Andrew Thompson
http://www.lensescapes.com/
http://www.physci.org/
http://www.1point1c.org/




Hi Andrew,

Thanks for that reply, as most of the visitors to the site commented on
the ease of navigation through the 400+ pages I am trying to keep the
menus as they are, I have only been working with CSS for just over a week
and am hoping to get a basic page template sorted and working before I
try to convert the site. I also want to include accessibility into the
site at the same time if I can.

One thing did make me smile whilst reading posts in this group re
comments on sites not validating as the other night I happened to viewing
a HTML and CSS tutorial site and just out of interest I tried to have it
validated and it FAILED, so some of it is 'don't do as I do, do as I say'

Gerald


Reply With Quote
  #8  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: Please help a newbie - 08-16-2003 , 10:48 AM



"Grytpype-Thynne" <geraldIDONTWANTSPAMbramwell (AT) hotmail (DOT) com> wrote

Quote:
In article <nfg%a.36893$bo1.15366 (AT) news-server (DOT) bigpond.net.au>, andrew64
@bigNOSPAMpond.com says...
.....
One thing did make me smile whilst reading posts in this group re
comments on sites not validating as the other night I happened to viewing
a HTML and CSS tutorial site and just out of interest I tried to have it
validated and it FAILED, so some of it is 'don't do as I do, do as I say'
Where was that URL?

I myself have 4 primary internet sites, the first 3
do not have either a doctype or charset included,
so would not have any hope of validating.

2 of those 3 sites use frames, and they all use
tables for layout of purely visual elements.
(All three are long overdue for rewrites)

lensescapes is the first site I have made in which
I aim to be both w3c compliant and accessible.

So, just in case the site where you viewed the
'HTML and CSS tutorial' was my own, I'll respond..

'If you can learn to paint by watching TV - watch TV!'

;-)

--
Andrew Thompson
http://www.lensescapes.com/
http://www.physci.org/
http://www.1point1c.org/




Reply With Quote
  #9  
Old   
Chris Morris
 
Posts: n/a

Default Re: Please help a newbie - 08-16-2003 , 11:17 AM



Grytpype-Thynne <geraldIDONTWANTSPAMbramwell (AT) hotmail (DOT) com> writes:
Quote:
One thing did make me smile whilst reading posts in this group re
comments on sites not validating as the other night I happened to viewing
a HTML and CSS tutorial site and just out of interest I tried to have it
validated and it FAILED, so some of it is 'don't do as I do, do as I say'
This is a well-known phenomenon.

http://www.allmyfaqs.com/cgi-bin/wiki.pl?Flavell's_Law

--
Chris


Reply With Quote
  #10  
Old   
andy johnson
 
Posts: n/a

Default Re: Please help a newbie - 08-16-2003 , 11:46 AM




Quote:
One thing did make me smile whilst reading posts in this group re
comments on sites not validating as the other night I happened to viewing
a HTML and CSS tutorial site and just out of interest I tried to have it
validated and it FAILED, so some of it is 'don't do as I do, do as I say'

Gerald
The validator helped me tremendously. You have to remember it is a
tool, my peace with it is "use it, benefit by it, don't be mastered by
it". I have been doing CSS for exactly 8 days now, and while my pages
do not completely validate, they do so in all the right areas. I do
not intend to add alt tags to spacers etc. nor will I immediately
update my old pages that are table oriented. The "where the rubber
meets the road" point has to be controlled by you, not some program on
a w3c server. Do what is right for you, and listen to these guys who
really do know this, they are right, and really helping you more than
you know!

Just my 2 pennies...

Andy


"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)


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.