HighDots Forums  

Is it not possible to override CSS visibility.?

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


Discuss Is it not possible to override CSS visibility.? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Is it not possible to override CSS visibility.? - 11-04-2003 , 12:02 PM






I have a very simple stylesheet attached to an html file as below.

body {color: darkgray; visibility: hidden}
span {color: black; visibility: visible}

The objective is to only display text within span tags. However when I
render the html nothing is visible so it would seem that that the
visibility override on the span tags is not taking effect.

Can anybody shed light on this?

Reply With Quote
  #2  
Old   
Spartanicus
 
Posts: n/a

Default Re: Is it not possible to override CSS visibility.? - 11-04-2003 , 12:12 PM






wooks wrote:

Quote:
I have a very simple stylesheet attached to an html file as below.

body {color: darkgray; visibility: hidden}
span {color: black; visibility: visible}

The objective is to only display text within span tags. However when I
render the html nothing is visible so it would seem that that the
visibility override on the span tags is not taking effect.

Can anybody shed light on this?
Should work except in Opera (bug).

--
Spartanicus


Reply With Quote
  #3  
Old   
Spartanicus
 
Posts: n/a

Default Re: Is it not possible to override CSS visibility.? - 11-04-2003 , 12:21 PM



Spartanicus wrote:

Quote:
body {color: darkgray; visibility: hidden}
span {color: black; visibility: visible}

Should work except in Opera (bug).
On second thought, setting body to invisible may cause problems.

--
Spartanicus


Reply With Quote
  #4  
Old   
Stan Brown
 
Posts: n/a

Default Re: Is it not possible to override CSS visibility.? - 11-05-2003 , 09:14 AM



In article <8852d33c.0311040902.45232d1b (AT) posting (DOT) google.com> in
comp.infosystems.www.authoring.stylesheets, wooks
<wookiz (AT) hotmail (DOT) com> wrote:
Quote:
I have a very simple stylesheet attached to an html file as below.

body {color: darkgray; visibility: hidden}
span {color: black; visibility: visible}

The objective is to only display text within span tags. However when I
render the html nothing is visible so it would seem that that the
visibility override on the span tags is not taking effect.

Can anybody shed light on this?
Gee, if only you'd given us a URL. I might have tinkered a bit with
_your_ example, but I'm not motivated enough to construct one myself
from scratch.

Failing that, I can only suggest you tinker with specificity by
replacing "span" with "body span". Maybe that will do it.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/


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.