• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Some HTML/CSS questions...

Carlos

Well-known member
#1
Okay, so, I own a bunch of websites and I want to fix a few things there...

How to make a URL link to open in a new page? At present time, once you click a link on any one of my sites, it opens on the same window. My cousin and I had a meeting last month, and she suggested I make it open in a new window. What is the best method to do this? I see a bunch of HTML tactics to do this, but not really sure which one does exactly what I want.

This is the current HTML code for links.

HTML:
<a href="http://www.carlosx360.co" title="CarlosX360 Community">CarlosX360</a>
The CSS question is: How do I annotate that I want to move the text position to a few pixels..?

This is what I have now...
CarNavi.png


You see, it's too close to the edge. What can I do to move this a bit?
 

DBA

Well-known member
#2
Okay, so, I own a bunch of websites and I want to fix a few things there...

How to make a URL link to open in a new page? At present time, once you click a link on any one of my sites, it opens on the same window. My cousin and I had a meeting last month, and she suggested I make it open in a new window. What is the best method to do this? I see a bunch of HTML tactics to do this, but not really sure which one does exactly what I want.
Code:
<a href="http://www.domain.com" target="_blank">Test</a>
The target is what you're looking for.

http://www.w3schools.com/TAgs/att_a_target.asp