Solved

CSS classes definition syntax

Posted on 2015-01-04
1
81 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 83

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
displaying 3 dropdownlist  horizontally 3 31
Obsolete font tag need to convert to CSS 3 33
Debugging Html 8 31
How to pass values to HTML-5 attribute dynamically? 24 44
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
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…

740 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