/    Sign up×
Community /Pin to ProfileBookmark

Using to CSS Tags

Hi,

I want to use 2 CSS classes

<li><a href=”index.php” id=”here”>Home</a></li>

That link implements 1, how would I add one that said id=”left” and id”here” are the same time?

Thanks and have a nice day!

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@CharlesFeb 01.2006 — Those aren't classes those are ids. You can only have one id and only one thing can have any one id at a time. However, any one thing can have several classes:&lt;li&gt;&lt;a href="index.php" class="left here"&gt;Home&lt;/a&gt;&lt;/li&gt;
Copy linkTweet thisAlerts:
@toicontienFeb 01.2006 — You might find this post a good read about when to use IDs, classes and style attributes: http://www.webdeveloper.com/forum/showthread.php?t=85247#post464007
Copy linkTweet thisAlerts:
@comptech520authorFeb 02.2006 — I guess where i'm going with this is on the footer of a webpage

The ID is set to footer

and in the CSS the footer says align the text right

I want to have a portion of the text on the left and the other portion on the right
×

Success!

Help @comptech520 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...