The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> can CSS control consecutive hyperlink text ? not using <P>, Cant find info on how to control hancor text in hiperlins using CSS
maxcamps
post Dec 19 2006, 05:24 PM
Post #1





Group: Members
Posts: 7
Joined: 13-December 06
Member No.: 1,294



i'm confused as i see the BODY IN THE *.CSS document. but it is in the *.html document as well in several examples i've seen. I can't find source of information that clarify how those two BODY statements work together .

Can
TEXT="#FF66FF"
LINK="#0000FF"
VLINK="#21540"
ALINK="#FF0000"

Be put inside a *.css document. after the BODY ?



I'm trying to control the textcolor of the "<a href='S" texts , for Home, Things To Do, Birds, etc. from the *.css documet, is this posible or it should be done page by page , not by css ?.

<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table28">
<tr>
<td width="171"></td>
<td width="475"><center><p>::
<a href="http://villaxaman-nah.com/main-engl-xaman.html">Home </a>::
<a href="http://www.villaxaman-nah.com/xamanactiv-brithish.htm">Things to Do</a> ::
<a href="http://www.villaxaman-nah.com/xaman-birds-brithish.htm">Birds</a>::
<a href="http://www.villaxaman-nah.com/xaman-kayaking-brithish.htm">Kayaking</a> ::
<a href="http://www.villaxaman-nah.com/xaman-bus-english.htm">Buses</a> ::
<a href="http://www.villaxaman-nah.com/xaman-tarifa-english.htm">Rates
</a>::
<a href="http://www.villaxaman-nah.com/xaman-bios-english.htm">The Biosphera</a> ::
<a href="http://www.villaxaman-nah.com/xaman-calendar.html">Calendar</a> ::
<a href="http://www.villaxaman-nah.com/xaman-reserv.htm">Reservations</a>::</p></center></td>
<td width="97"> </td>
</tr>
</table>

Thanks.


Attached File(s)
Attached File  macho_engl_xaman_proces.html ( 5.66k ) Number of downloads: 624
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
maxcamps
post Dec 19 2006, 05:37 PM
Post #2





Group: Members
Posts: 7
Joined: 13-December 06
Member No.: 1,294



Well it seems it has to done by a class .
i'm gonna build the class to practice.

will i be rigth ?.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 19 2006, 05:54 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



QUOTE(maxcamps @ Dec 19 2006, 11:24 PM) *

i'm confused as i see the BODY IN THE *.CSS document. but it is in the *.html document as well in several examples i've seen. I can't find source of information that clarify how those two BODY statements work together .


That's the whole point. CSS works by applying styles to existing HTML. To that mean selectors are used. If a selector matches something in the HTML, the style is applied. The simplest form of selectors are element selectors.

CODE
body   { color: black; background: white }


Basically, all text in the document will be black if a more specific rule doesn't override the above one. Read all about it here: http://htmlhelp.com/reference/css/ .




QUOTE
Can
TEXT="#FF66FF"
LINK="#0000FF"
VLINK="#21540"
ALINK="#FF0000"

Be put inside a *.css document. after the BODY ?

Not in the form you've written it, but there are CSS equivalents (and then some).

http://www.w3.org/TR/REC-CSS2/selector.htm...-pseudo-classes


QUOTE
I'm trying to control the textcolor of the "<a href='S" texts , for Home, Things To Do, Birds, etc. from the *.css documet, is this posible or it should be done page by page , not by css ?.

Sure. Should those links be different from other links on the page? In that case give the table an id.

CODE
<table id="nav"...>


Then in the style sheet...
CODE
#nav a:link    { /*styles for links */ }
#nav a:visited    { /*styles for visited links */ }
#nav a:hover    { /*styles for when links are hovered */ }

You can have more than that, but that's the basic setup.

Later you will get rid of the whole table and do the layout with CSS too. happy.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
maxcamps
post Dec 19 2006, 06:31 PM
Post #4





Group: Members
Posts: 7
Joined: 13-December 06
Member No.: 1,294



[quote name='pandy' date='Dec 19 2006, 06:54 PM' post='6014']
[quote name='maxcamps' post='6010' date='Dec 19 2006, 11:24 PM']


Well i feel honored and very thankfull for your assistance. It sure shed light into reckon i must go deeper into the manuals. But is was usefull, now its clear the route to go.

Best Regards .

MaxCamps.



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
maxcamps
post Dec 19 2006, 10:20 PM
Post #5





Group: Members
Posts: 7
Joined: 13-December 06
Member No.: 1,294



just by looking into http://www.w3.org/TR/REC-CSS2/selector.htm...-pseudo-classes
is sufficient to discourage oneself to even wonder if some distant date our brain will be cappable to grasp such complexity. and this is only formatting, i rise my hat to the c++ programers. But i have to get done by tomorrow if money would be collected so filtering will be set to high and heavy patching and ftp tryal and error trafic will occur. Extension request scheduled , slack accounted for , crash pillow set up, working substitute skeletons in place. Party time allowance 4 hours. have a nice one.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
maxcamps
post Dec 19 2006, 10:47 PM
Post #6





Group: Members
Posts: 7
Joined: 13-December 06
Member No.: 1,294



Now i'm really scared.

You gotta be kidding me. A standard person send to the followin section of the w3c spec would be completely lost in space , fabberglasted, and feeling very very challenged.: i mean , tah back slash, are you moving up and down the directory trre and at the same time initializing and passing variable parameters ?. gee to understand this level only a systems enginerer or computer sccience trained personnel.

This is the section i meant.
No wonder is so expensive.

CSS2 gives a special meaning to the comma (,) in selectors. However, since it is not known if the comma may acquire other meanings in future versions of CSS, the whole statement should be ignored if there is an error anywhere in the selector, even though the rest of the selector may look reasonable in CSS2.

Illegal example(s):

For example, since the "&" is not a valid token in a CSS2 selector, a CSS2 user agent must ignore the whole second line, and not set the color of H3 to red:

H1, H2 {color: green }
H3, H4 & H5 {color: red }
H6 {color: black }

Example(s):

Here is a more complex example. The first two pairs of curly braces are inside a string, and do not mark the end of the selector. This is a valid CSS2 statement.

P[example="public class foo\
{\
private int x;\
\
foo(int x) {\
this.x = x;\
}\
\
}"] { color: red }


This last 10 lines of code, come on, are you telling me that a simple jack nowadays is able to explain that.

it is soo.. funny
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Dec 20 2006, 01:27 AM
Post #7


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



I don't recommend that you try to learn CSS (or HTML, or Perl, or PHP, or whatever) from a spec. Use a tutorial. Specs are written for all kinds of very technical people, including people who write browsers. The excerpts you quoted are good examples of that. Most normal people don't need to worry about it, other than the general principle that browsers are supposed to ignore CSS that they don't understand. That allows future versions of CSS to invent new selectors and properties, without worrying about older browsers trying to do something stupid with CSS they don't understand.

Not that MSIE was written with this in mind...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 20 2006, 06:37 AM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



QUOTE(maxcamps @ Dec 20 2006, 04:20 AM) *

just by looking into http://www.w3.org/TR/REC-CSS2/selector.htm...-pseudo-classes
is sufficient to discourage oneself to even wonder if some distant date our brain will be cappable to grasp such complexity. and this is only formatting, i rise my hat to the c++ programers.

In fact, I find the section about links styling to be pretty clear and people usually understand it once they read it. I think your problem is that you need to understand the concept of CSS first. Did you read the introductory chapters of the CSS reference that I recommended last week? tongue.gif
http://forums.htmlhelp.com/index.php?showtopic=1520&hl=

QUOTE
But i have to get done by tomorrow if money would be collected so filtering will be set to high and heavy patching and ftp tryal and error trafic will occur. Extension request scheduled , slack accounted for , crash pillow set up, working substitute skeletons in place. Party time allowance 4 hours. have a nice one.

Well, it sounds like you are a professional web designer. To me, that means you should already know this stuff. It surely doesn't mean I, the w3c or anyone else is obliged to spoon feed you so you can get your money without having to bother with learning your trade. glare.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Dec 20 2006, 08:00 AM
Post #9


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



You'll probably find the Westciv quick tutorial on the matter more comprehensive.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
maxcamps
post Dec 20 2006, 03:22 PM
Post #10





Group: Members
Posts: 7
Joined: 13-December 06
Member No.: 1,294



i'm sorry Pandy.

I will study harder, devote more time to the study, and not bother you guys if i not already practiced . It is hard and expensive top get books here in the 3rd. world.
Our only resources are on the web and you guys. I'm not a pro, just trying to make ends meet one way or another. There is not very much jobs here. I'm self employed and dont have a fixed job since a long time.

I owe you a big one.


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 20 2006, 03:56 PM
Post #11


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



There are lots of free recourses on the web. Books get outdated real fast in this game.

What I meant is that you have to read about the concept of CSS so you understand how it is used before you try to use it. It isn't to any use that I or someone else repeat in detail what is already said, for instance in the CSS reference at this site, the one I referred to last week. Read those overview chapters. If there's something you don't understand, please ask about that specifically instead of starting a new thread repeating your first question.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 11:07 AM