Lozbo
Sep 15 2005, 09:22 PM
| | I know that you can declare alternate stylsheets for your pages, but i dont know how will a user change it, i mean, i know you can change styles depending on media, or even with some js or server side coding, but with pure html? how does the user set what style he wants to be displayed?
the code goes something like that:
CODE <link title="Alternate Style" href="/alt1.css" rel="alternate stylesheet" media="screen" type="text/css" />
thanks...
-lozbo |
Reply
Tyssen
Sep 15 2005, 09:48 PM
You need to incorporate javascript - A List Apart has a good article.
Reply
arboc7
Sep 16 2005, 01:01 AM
QUOTE(Tyssen @ Sep 15 2005, 04:48 PM) You need to incorporate javascript - A List Apart has a good article. There is no way, to my knowlege, that a user can change to an alternate stylesheet using pure HTML. For the javascript approach, use Tyssen's approach. I also think that some browsers allow the user to change stylesheets and even add personal ones, but I have yet to come across one (that has a resonable user-base) that lets me do that.
Reply
jlhaslip
Sep 16 2005, 05:37 AM
I don't know that the user can change css files, but by the rules of the cascade, the user can override certain attributes and make their choice become the current setting. The user has the ultimate control by setting certain rules for their browser and the browser rules override the css file. This is a very important aspect of the cascade rules for disabled / visually impaired users. It allows those with handicaps to use the web because by setting the browser rules to suit their impairments, they become less impaired. For example, the font size that you want to use on your web site may be too small for those who are visually handicapped. But, by allowing the browser rules to over ride the web site css rules, the visually impaired users are better able to navigate and use your site. It is a good thing if you happen to be a user who needs the control, but it is a bummer for the web site designer.
Reply
Tyssen
Sep 16 2005, 05:42 AM
QUOTE(jlhaslip @ Sep 16 2005, 03:37 PM) It is a good thing if you happen to be a user who needs the control, but it is a bummer for the web site designer.
Not really, not if you know how to make your layouts scalable/resizable.
Reply
littleweseth
Sep 16 2005, 06:18 AM
arboc7 : in firefox, View > Page Style > [ No Style | Default Style [ Alternate Style ] ]...... I think that's how you do it, anyway. I'm too lazy to hack up a test page right now.
Reply
Lozbo
Sep 17 2005, 05:49 PM
alright, thanks then, i just thought that as this alternate style sheets had its own attribute declaration in the html link tag, it might have a functional way of switching those from within the html document itself, no additional scripting required... And that ALA article is going to be very helpul, thanks, ill take that js...
Reply
Similar Topics
Keywords : alternate style hows- Style Not Displayed Correctly On Firefox [resolved]
- (16)
- Question About Css
- Setting the style of titles. (5)
Hello, I would like to ask a question about setting a style for titles on my web site. So far I have
managed to set my titles with a different capital by doing this: CODE h1.title:first-letter
{color: gold; font-size=xx-large; font-style: oblique; background: black}; Then my
titles come out with a big golden italic capital in a black box, and I get there by doing CODE
<h1 class="title">Blablablablabla</h1> However, if I also want a certain
background for the rest of my title, eg. a golden background or even a backgro...
Need Help On "global News" Problem.
- Change paragraph of text with CSS style change? (7)
I am making a website for my IT Support class and a program called "Cox Connects Kids" for my
mid-term assignment. Now I have the whole layout made and I will post a screen shot down lower. My
basic problem/question is this: I have a right section of the page(A div) and it is supposed to be
a global news part that shows the same on every page(I.e. home,contacts,help) and I was wondering if
I can somehow edit my CSS file to have it in there and just change it the one time for all the
pages. I am guessing there is some way to do this but I couldn't figure it out. I...
Free: Css - Style Sheet Editors And
- CSS Scrollbar Makers (7)
CSS - Style Sheet Editors : Ranfo Cascading Style Sheet Editor http://ranfo.com/csseditor.htm
EclipseStyle http://www.greeneclipsesoftware.com/eclipsestyle.htm BHead - Meta Tags & CSS
Generator http://home5.swipnet.se/~w-52253/hyper/pro...ead/bhsetup.exe CSS Style Generator
http://www.10002.org/download/CSSStyleGen.zip Balthisar Cascade
http://www.balthisar.com/site/index.php CSS Scrollbar Makers: Scrollbar Skinner
http://www.survivorx.com/telechargement/Sc...%20Skinner2.zip ScrollBar
http://home.hccnet.nl/s.j.francke/software...ollbarsetu...
Creating Style Sheets
- (5)
I am attempting to create style sheets in order to make editing easier. I have created one style
sheet that has the basics for my horizontal menu. However I would like to create another that will
have the links for the menu. My first menu works because it is all css formatted. However, the
portion I want to use that has the "link details" is in .html. Can this be put into a style sheet,
and if so how do I create that? The website can be viewed at http://www.faithcity.org/test2.html ...
Looking for alternate, style, sheet, hows
|
|
Searching Video's for alternate, style, sheet, hows
|
advertisement
|
|