Jump to content

Help A Newbie!


bawarrington

Recommended Posts

For a website I'm making I have put in a 'click to enter page' that has just a company logo on it which is meant to be a clickable link to take the user to the home page. I'm just having trouble with this page. This is the code I'm using at the moment:

<center><a href="/Page2/page2.html"<img src="/Users/Ben/Documents/Design Work/Crystal Clear/Page One/Picture 3.jpg" alt="Logo" /></a></center>

I'm just wondering how I properly link the pages together?Also, when I preview this page in firefox, I end up with a blue border around the image because it's a link. How can I remove that blue border?Thanks

Link to comment
Share on other sites

You forgot to close the first <a> tag:

<a href="/Page2/page2.html"><img src="/Users/Ben/Documents/Design Work/Crystal Clear/Page One/Picture 3.jpg" alt="Logo" /></a>
You shouldn't use <center> tags. Use the CSS text-align property on the parent element to center the image.As for the blue border, CSS solves that too, just put this in your stylesheet:
a img { border: 0; }

If you don't know CSS, now's the time to look at the W3Schools CSS tutorial

Link to comment
Share on other sites

Ohh, boy do I feel stupid *facepalm* sorry about that I should have double checked my code.But how do I point the CSS to the image?I don't really understand CSS and it's going to take me a while to learn how to use it properly.
Like ingolme wrote. use the W3schools CSS tutorials. you can find them here:http://w3schools.com/css/default.aspIts properly the best way to get started. /mads
Link to comment
Share on other sites

If you read the CSS tutorial you will understand it all. If you don't learn CSS you are not going to be able to make good websites.

Link to comment
Share on other sites

I'm going to echo what Ingolme and madsovenielsen said. We could sit here and type out how to do that, how to connect the CSS to your page, and how to associate the css with a certain part of it, but that would take a long time, and that is why W3school made the tutorials. It might seem a bit daunting at first, but CSS is a powerful tool that is being used more and more on websites.The basic concept of CSS is to let HTML display the information, and only have in the html what to display, then in CSS you have HOW to display it. Aso check out the validation page, it might help catch things like that. http://validator.w3.org/

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...