CrossY
CrossY

Reputation: 19

Using selectors against a specific tag-attribute

I got a small problem with a webshop module. I'm not sure what's going on, but apparently the text I see on the website comes from a code such as a below (James).

Since I cannot find where they hid this code, i'm wondering if I can simply target the part where it says "james" with CSS, and change the layout that way around.

    <a id="bob" title="james">

Edit: To clarify: I'm trying to style (margins and whatnot) the part where it says "james".

Kind regards, Dave

Upvotes: 1

Views: 39

Answers (1)

twinlakes
twinlakes

Reputation: 10218

You can target attributes in css with this syntax: [attr="value"] So if you want to target <a id="bob" title="james">, you can use a[title="james"]

Upvotes: 2

Related Questions