Solved

CSS classes definition syntax

Posted on 2015-01-04
1
75 Views
Last Modified: 2015-01-04
Please explain differences between these two classes.

.user-login {
  position: absolute;
  top: 40px;
  right: 0;
  #display: none;
  text-align: right;
}
.user-login a {
  display: block;
  margin: 0 0 4px 0;
}

Open in new window


Html code
<div class="user-login">
				<a href="/under-construction.html" class="login">Daxil Ol</a>
				<a href="/new-register" class="register">Qeydiyyat</a>
</div>

Open in new window

0
Comment
Question by:Nusrat Nuriyev
1 Comment
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40530925
The second applies to anchors <a> inside an element with 'user-login' class.

Note that using 'absolute' position will cause all instances of that class to show in the exact same position on the page.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now