|
Posted by Jonathan N. Little on 01/24/06 18:45
Marcus Stollsteimer wrote:
> Hi,
>
> thanks for all your answers, especially Gérard (was my
> question really so unclear?), your link led me here:
>
> <http://www.w3.org/TR/2004/WD-css3-hyperlinks-20040224/>
>
> So the answer seems to be "not at the moment",
> but in CSS3 it might be possible to have something like
>
> a { target-name:parent; }
>
> Regards,
> Marcus
>
Again No.
Okay, let's try this a different way. CSS does *not* replace all HTML
attributes, only the attributes with respect to style (presentation) and
not structure and content. Now take the IMG element; the SRC, ALT,
TITLE, are attributes that affect the content but ALIGN or BORDER are a
presentation or styling issue and are replaced with CSS with FLOAT and
BORDER properties. Not only HTML attributes but some HTML tags that
where presentational are replaced with CSS, CENTER, BOLD, FONT, I, SMALL
are examples. If you want to make something bold, then style it so. If
your content requires identifying such emphasis, then structurally mark
the bits with EM, STRONG or <ELEMENT class="SomethingVeryImportant"> and
style accordingly; but whether the emphasized text is bold or red or
italic, or whatever, is a style issue and define it in your CSS.
Now you can build CSS sectors to style specific ELEMENTS base upon HTML
attributes, but your cannot set or change those attributes. We will use
your target for an example, so you're using a frameset right? 3 frames
for this example, 'banner' on the top, 'navbar' of the left and
'content'. With CSS sectors could color all links in on your page base
upon the target value so that links that change the 'content' frame are
colored blue but special links that break out of the frameset are
colored red.
A[target="content"] { color: blue; }
A[target="_top"] { color: red; }
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|