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

Some HTML/CSS questions...

Discussion in 'Off Topic' started by Carlos, Aug 29, 2012.

  1. Carlos

    Carlos Well-Known Member

    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?
     
  2. DBA

    DBA Well-Known Member

    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
     
    8thos likes this.
  3. Will

    Will Active Member

    For the text, add some left padding.
     
  4. DRE

    DRE Well-Known Member

    Wrap html in css when you can instead of putting the padding in the html code.
     
  5. MagnusB

    MagnusB Well-Known Member

    target="_blank" were brought back in html5, but if you use html4 (strict), it isn't a part of the standard.
     

Share This Page