Solved

CSS Layout

Posted on 2012-03-21
1
174 Views
Last Modified: 2012-06-27
layoutHello, I have two links, which are too close. I want them one is on the left, the other is on the middle somewhere of the page.
Thanks.
<div id="nav">
		
			<a href="/">Lookup Tables</a>
			        
		<a href="/">Metric Mapping</a>
	</div>

Open in new window

0
Comment
Question by:zhshqzyc
1 Comment
 
LVL 38

Accepted Solution

by:
Tom Beck earned 300 total points
ID: 37750018
You could just adjust the padding to push the second one away from the first.
<style>
#nav a{
    padding-right:40px
}
</style>
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

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

19 Experts available now in Live!

Get 1:1 Help Now