Highlighting text?
I guess "highlighting" would be the most accurate term. Can you have a background color behind a certain amount of text only? [I know you can do it with just links, but... With text?]
Thank you.
I guess "highlighting" would be the most accurate term. Can you have a background color behind a certain amount of text only? [I know you can do it with just links, but... With text?]
Thank you.
caislander posted this at 14:49 — 19th April 2001.
They have: 30 posts
Joined: Oct 2000
Morning,
Yes you can highlight text by using CSS, there are several ways you could do it
1st you could use like this
in the head section of the page add
span {background-color: yellow;}
then surround the text you want highlighted with a tag …
or for bigger block of text you could assign a class to the tag like this
in the head section of the page add
.hl {background-color: yellow;}
then you would just add the following to your tag
class="hl"
Hope This Helps
CaIslander
From The Land Of SunShine, Surf & Code
WebXpertz Community Forums for Webmasters & Developers
Suzanne posted this at 20:10 — 19th April 2001.
She has: 5,507 posts
Joined: Feb 2000
If you are using style tags in the head tag (as opposed to an external CSS sheet), then you will want to have:
To protect lower browsers, and to have valid HTML code. You also don't need to specify the tag () if you are going to use it for any tag that needs to have things highlighted. I use the class declaration only (.hl, as above) and use it for whenever I need the client to review specific information, so it is usually a span, but sometimes entire paragraphs, or headings.
Suzanne
Mark Hensler posted this at 20:17 — 19th April 2001.
He has: 4,048 posts
Joined: Aug 2000
How low of a browser to you need to get for it to blow up when you ommit the comment tags in ?
caislander posted this at 21:36 — 19th April 2001.
They have: 30 posts
Joined: Oct 2000
Hey Guys,
Thanks for the correction on the embedded style sheet I agree that is the correct way and the way I should have written to start with..
I rarely use comment tags any more since all browsers since IE 3 & NS 4.0b2 have been able to read embedded style sheets and therefore do not require the use of comment tags. After reading logs for some decent sized sites the number of people with browsers below those standard are almost non-existant, I think that comment tags used like that are a holdover from times when CSS was very young and browsers had worse standards support than they have today (that's a terrible thought )
Thanks Again
CaIslander
From The Land Of SunShine, Surf & Code
WebXpertz Community Forums for Webmasters & Developers
Suzanne posted this at 23:10 — 20th April 2001.
She has: 5,507 posts
Joined: Feb 2000
Dunno how far back. Eeriely, one of my customers (upscale restaurant here in Vancouver) get regular hits from Netscape 3 and IE 3 -- like 1/2 their total hits. Very frightening.
Definitely need it for those guys.
Usually, however, I use external style sheets, and have been working with the recommendations of webstandards.org and following the tutorials and help at alistapart.com (start with issue No. 99) to protect the lower browsers from the higher technology.
Suzanne
Mark Hensler posted this at 03:02 — 21st April 2001.
He has: 4,048 posts
Joined: Aug 2000
Good grief! What OS are they running? Win 3.1?!?
I can't understand why some people are so far behind the times.
Mark Hensler
If there is no answer on Google, then there is no question.
Suzanne posted this at 03:46 — 21st April 2001.
She has: 5,507 posts
Joined: Feb 2000
Me, neither, love, me neither. They get a lot of business clients and lawyers, and those are big corporate type downtown types and last I worked in a big corporate downtown type office, all the OS were adapted "customized" to prevent the users from being lusers, and as such, any upgrade is a pretty significant effort.
Add on to that that the browsers need to undergo the same sort of modifications...
Sometimes I'm surprised that corporate behemoths can move at all. Two years ago I was working for the provincial government and using DOS, no shit. I had WordPerfect5.1 and everything, wasn't I lucky! You should have seen my boss's "cellphone" -- looked like she stole it from a WWII movie.
*sigh*
Suzanne
The Webmistress posted this at 08:23 — 21st April 2001.
She has: 5,586 posts
Joined: Feb 2001
I tend to agree with Suzanne, it's the big/older companies that are using the antiquated systems. They just have so many people using the custome built systems that to upgrade them all just so that "surfing the net" would be made more enjoyable for their staff, they just aint gonna do it! They would probably say "If it aint broke, don't fix it!!"
Julia - if life was meant to be easy Michael Angelo would have painted the floor....
Suzanne posted this at 02:09 — 22nd April 2001.
She has: 5,507 posts
Joined: Feb 2000
y2k caught a lot and they upgraded their systems from Netscape 3 to Netscape 4.x... ha ha.
It will take the web breaking for them before they will make the changes. In order to encourage the change, they need to see a value in it. Security, encryption, increased functionality and increased productivity -- these things are stronger than "it looks better".
Suzanne
caislander posted this at 06:49 — 22nd April 2001.
They have: 30 posts
Joined: Oct 2000
Hey All,
I knew living where I do would spoil me someday We concider anything not running Win 98SE or higher to be outdated aniquated and ready to be surplused And everone I know has 2 or 3 beta programs on their machine.
Suzanne,
I just checked the most recent logs for one of the sites I maintain in the last 5000 unique views I have had one view with a 3.0 browser.. So anyway this has been an interesting thread Dos uh? Can't even remember what that looks like Wonderful country you have up there but darn old computers
Later
CaIslander
From The Land Of SunShine, Surf & Code
WebXpertz Community Forums for Webmasters & Developers
Suzanne posted this at 00:04 — 23rd April 2001.
She has: 5,507 posts
Joined: Feb 2000
If you don't do sites for goverments and lawyer firms, I'm hoping you won't see Netscape 3. I still get occasional hits from Netscape 3 and IE 3 and even Netscape 2 (eep!) on my personal site, because I have friends in remote locations and they can't get anything higher to work on their 486 or even 386... One in Africa, for instance, accessing the web via a party phone line -- try that for a pain in the arse.
It totally depends on your audience. If you have an audience with newer machinery, then they have newer browsers. If you have a different kind of audience... Well, you have to know your audience.
Suzanne
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.