|
| |
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
How to set priority - 3/25/2004 15:39:12
I have a situation where using class/id doesn't seem to be working to format something and i think it's because a priority has been set on one of them, but I'm not sure how to fix it. I have a page that defines both font and links specifically (and separately) and then another class for a copywrite line (which is smaller and a different color). In that copywrite line in the HTML, i have a link that I'd like to keep the same size and color as the rest of the line, but unfortunately, the link is defaulting to the link class i set in the style sheet. I've tried setting up a special class to adjust, but it doesn't seem to work. Will an embedded style sheet take priority over the external sheet i'm using or is it how everything is laid out in the external sheet? How can i override the setting in the external sheet for the link default? And i know your next question will be to show the example, but I'll have to wait to post it when i get home tonight. I hope i've been clear though. thanks, Lil
|
|
|
|
c1sissy
Posts: 5079 Joined: 7/20/2002 From: NJ Status: offline
|
RE: How to set priority - 3/25/2004 16:13:53
quote:
Will an embedded style sheet take priority over the external sheet Yes, an embedded style sheet over rides the external and inline will over ride the other two. LOL yes, my next statement was to show us the code and the style sheets. I hope that this helps you so far. And you said that assigning different classes didn't work?
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
c1sissy
Posts: 5079 Joined: 7/20/2002 From: NJ Status: offline
|
RE: How to set priority - 3/25/2004 17:14:57
quote:
Now the question of <span> vs. <div> for the inline. I'm guessing that for one or two words (a link in this case), i'd use <span> whereas a <div> would be more useful for, say, a paragraph You are correct in regards to this. Just think block and inline, that should help you out a bit. divs are for block level, and span is for inline. Happy to have helped you. Anymore questions please don't hesitate to ask them!
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
Nancy
Posts: 3626 Joined: 11/9/1999 From: Nebraska Status: offline
|
RE: How to set priority - 3/25/2004 17:15:23
I'm not positive on this, but span may not still accomplish what you want with links. Span usually is applied to a small section of text that is not linked. You might try applying the class to the actual link tag. Also, using inline may also not be the answer. It may depend on how you want to validate. Inline styles are being deprecated. I'll have to check a little further on this, as I know they will work for validating HTML transitional, but not for XHTML. Just personal opinion on inline styles: I think in the long run they are as bothersome as the old font tag was. Should you decide to make changes at any point, you'll have to go back through each and every inline style. Nancy
_____________________________
Easy Estimates -- is a simple to use tool to quickly build a Web site page enabling visitors to quickly and easily create an estimate of the cost of services that you provide.
|
|
|
|
c1sissy
Posts: 5079 Joined: 7/20/2002 From: NJ Status: offline
|
RE: How to set priority - 3/25/2004 17:38:34
quote:
Inline styles are being deprecated Really? Wow I didn't know that, thanks nancy. And you are right about having to maintain the links etc.. How about if she put the links into a div? Would that work for her?
< Message edited by c1sissy -- 3/25/2004 17:39:36 >
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
RE: How to set priority - 3/25/2004 17:38:53
Excellent information, thanks Nancy and Deb. I'll stick with just using the embedded style and reference the class.
_____________________________
You look like you're about to do something stupid. I'm in.
|
|
|
|
c1sissy
Posts: 5079 Joined: 7/20/2002 From: NJ Status: offline
|
RE: How to set priority - 3/25/2004 20:18:20
Hi, Ok, I'm going to post a tad of your code to show you what you have, and then I'm going to post what you should have, Also I have a screen print of your page that i took one piece of to show you something. You have a.wht:link {FONT-WEIGHT: bold; FONT-SIZE: 90%; COLOR: #ffffff; FONT-FAMILY: Arial; TEXT-DECORATION: none;} Try this a.wht:link { FONT-WEIGHT: bold; FONT-SIZE: 90%; COLOR: #ffffff; FONT-FAMILY: Arial; TEXT-DECORATION: none; } Ok, see how you have soooo many spaces after the { ? You should only have one space there. So after the word link it should be one space example: a.wht:link { So far, that is the only thing that i see. I have not really looked at the rest of it yet. Try fixing this and see what happens. Now the screen shot. Your words are difficult to see as they are sooo close to the viewport border. I only skimmed your code, so I dont know if you have one, but if you don't try putting in a margin so that it isn't soo close to the edge as in the pictrue. Now I used Foxfire to view this and the screen shot is from that. I'm going to be logging off in a few, so I"ll check in the morning to see how you have made out with this. Keep working, your doing a great job. Thumbnail Image
Attachment (1)
< Message edited by c1sissy -- 3/25/2004 20:24:18 >
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
RE: How to set priority - 3/26/2004 9:45:27
I fixed the spacing, but that didn't fix the problem. I had to put it all down last night and call Uncle. I'm going to go back to it tonight with a clear head and take a look at it again. Thanks for your continued patience Deb.
_____________________________
You look like you're about to do something stupid. I'm in.
|
|
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
RE: How to set priority - 3/26/2004 11:13:06
Well, that makes sense, but i thought that was the purpose of CSS. To specify something to be/look/act differently than everything else. Shouldn't this work regardless of basic link settings if i've specified full and different link settings (embedded) on the page? Or am i just being ignorant?
_____________________________
You look like you're about to do something stupid. I'm in.
|
|
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
RE: How to set priority - 3/26/2004 11:37:11
quote:
The answer is to create or edit a new linkstyle specially for the purpose that doesn't set the percentage but simply inherits it. So, create a new linkstyle, which i've done and placed directly in the html, but don't specify the percentage or don't specify the fontsize, period? If it's inheriting the font size from the basic link/paragraph settings, how does it find the new fontsize if i don't specify it elsewhere? Or are you just telling me that what i want to do can't be done?
_____________________________
You look like you're about to do something stupid. I'm in.
|
|
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
RE: How to set priority - 3/26/2004 13:35:56
sounds like a challenge. yes, that's what i want (minus the underline), but don't tell me yet if you're calling me out. I'll figure it out or eat my hat if i can't.
_____________________________
You look like you're about to do something stupid. I'm in.
|
|
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
RE: How to set priority - 3/26/2004 20:19:59
ok, well that worked, but you've got me totally baffled as to how or why it worked. i thought commenting out something meant the code completely ignored it, so if this style is what the basic link will look like for the site, how does it know to . . . GAH! I should probably just take a break from this and go drink a beer. Or a couple. Again, i can't even begin to thank you Gorilla, but many thanks. Lil
_____________________________
You look like you're about to do something stupid. I'm in.
|
|
|
|
c1sissy
Posts: 5079 Joined: 7/20/2002 From: NJ Status: offline
|
RE: How to set priority - 3/26/2004 20:33:05
quote:
i thought commenting out something meant the code completely ignored it, so if this style is what the basic link will look like for the site, how does it know to . . . GAH! If you comment something out, how does it manage to show up? If this is what is going on? Since I cant see the page that LIL did, I'm guess that this is working opposite from what it is supposed to? lol, and by LIL's response as well.
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
d a v e
Posts: 4010 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: How to set priority - 3/27/2004 2:33:23
i think gorilla suggested commenting out the scond set to see what happens when those styles are turned on and off. there's also a tuturial for different link colours here http://www.thepattysite.com/linkstyles3.cfm (DW not required)
_____________________________
David Prescott Gekko web design
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|