Noobish Coding Question

Discussion in 'GR Classic Archive' started by Jtp, Mar 22, 2006.

  1. Jtp

    Jtp Well-Known Member

    Posts:
    313
    Likes Received:
    0
    Joined:
    May 29, 2005
    Well, I've coded and sliced my template for the most part.But when I add the around my navigation image a blue outline apprears arround the button :| How do I make that go away? >_<
     
  2. c6x Essn

    c6x Essn Well-Known Member

    Age:
    35
    Posts:
    1,344
    Likes Received:
    0
    Joined:
    Jun 5, 2005
    Location:
    FL
    add the "border" attribute
     
  3. Jtp

    Jtp Well-Known Member

    Posts:
    313
    Likes Received:
    0
    Joined:
    May 29, 2005
    That makes the blue border larger, if I set it to 0 the images don't fit together as they should.I need the buttons to have links without having borders.
     
  4. c6x Essn

    c6x Essn Well-Known Member

    Age:
    35
    Posts:
    1,344
    Likes Received:
    0
    Joined:
    Jun 5, 2005
    Location:
    FL
    woops i meant 0, i was just testing something otu in dw and i posted the wrong code

    but uh, if you have border = 0 and your images arent fitting together you did something wrong...
     
  5. Jtp

    Jtp Well-Known Member

    Posts:
    313
    Likes Received:
    0
    Joined:
    May 29, 2005
    Hmm I changed it to border"" and it works fine now :)

    edit:
    ugh It shows up fine in FF but not IE.....
     
  6. SwAT

    SwAT Well-Known Member

    Posts:
    2,689
    Likes Received:
    0
    Joined:
    May 9, 2005
    Location:
    Connecticut, USA
    The wonders of browser compatibility ;)

    What I do is i use css and make the rule

    Code:
    img { border:none; }
    That will do the same thing, but it will apply it to every image so you do not have to worry about adding border="0" to every image.
     
  7. Jtp

    Jtp Well-Known Member

    Posts:
    313
    Likes Received:
    0
    Joined:
    May 29, 2005
    Lol, how would I make a new CSS rule...?
     
  8. SwAT

    SwAT Well-Known Member

    Posts:
    2,689
    Likes Received:
    0
    Joined:
    May 9, 2005
    Location:
    Connecticut, USA
    in the head of the page put

    Code:
    <style type="text/css">
    
    img { border:none; }
    
    </style>
    That will effect all images on the page.
     
  9. JustMario

    JustMario Well-Known Member

    Age:
    37
    Posts:
    351
    Likes Received:
    0
    Joined:
    Jan 7, 2005
    Thanks man. Thats a helpful little tip that I never even would have thought of. It will help me as well on my way to learning CSS, HTML, and PHP.
     
  10. Dark Rider

    Dark Rider Well-Known Member

    Posts:
    914
    Likes Received:
    0
    Joined:
    Jun 25, 2005
    haha nice tip swat i use css but i never thought of doing that to save me time from adding border="0" to all my images :-D most of them i use div's to display but for the ones i dont that might help.
     
  11. SwAT

    SwAT Well-Known Member

    Posts:
    2,689
    Likes Received:
    0
    Joined:
    May 9, 2005
    Location:
    Connecticut, USA
    Yea, i use it for every template i code it saves so much more time. The other trouble is if the browser doesn't read css but there are very few browsers that don't now a days. Any browser that doesn't read css is like 2-4 years old :P
     
  12. xerzion

    xerzion Well-Known Member

    Posts:
    158
    Likes Received:
    0
    Joined:
    Nov 29, 2005
    Uhm, I coded a template and used this and when I previewed it looked perfect, I uploaded to a free host as a test and still perfect.So I upload it to my hosting (godaddy) and I had to sue some stupid on site page creator and then I pasted the html and stuff and they get the blue lines.The CSS rule is there but it still has the lines....
     
  13. SwAT

    SwAT Well-Known Member

    Posts:
    2,689
    Likes Received:
    0
    Joined:
    May 9, 2005
    Location:
    Connecticut, USA
    It would have to be on every page inside the head tag. If that doesn't do it make sure you typed it right otherwise it could be something with the host. Then you may have to do the good old border="0" :P
     

Share This Page