Guest IdrisArk Posted June 3, 2006 Share Posted June 3, 2006 Hello, I have just started using CSS and tried to find something of use in the CSS page over at w3schools main page but could not find anything that was of use for my current problem. As such i would like to seek help here from anyone who is knowledgeable. After i used CSS for my website all the images failed to load, the images are all broken. Here is the code...<html><head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <link href="http://www.xxxxxxxxxxx.com/mainstyles.css" rel="stylesheet"> <style type="text/css"> <!-- .HL {background: #ffcc00; color: #000000;} --> </style> <meta content="homepage of xxxxxxxxxxx the best, lowest cost, highest quality resource avaliable on the net, about the whole truth of beginning affiliate marketing, a must read if you are new to this field." name="description"></head><body style="background-color: rgb(138, 161, 182);" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0"><table style="width: 899px; height: 226px;" class="Bordered" align="center" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div style="text-align: center;"> </div> <div style="text-align: center;"> <div style="text-align: center;"><span style="font-weight: bold;"></span> <img alt="xxxxxxxxxxx.com" src="http://xxxxxxxxxxx.com/images/worldheader.gif"the last sentence is where the first image is, and all following images are not loadable. Thank You For Any Assistance Link to comment Share on other sites More sharing options...
The Praetorian Posted June 3, 2006 Share Posted June 3, 2006 Well, from what I can see of your code, for one thing your link to your style sheet should look like this.<link href="(the name of your stylesheet).css" type="text/css" ref="stylesheet">You don't need the whole link so long as your css document is uploaded to your server in the same folder as your html pages. The same goes for your images. Are they uploaded properly into your public folder? (The same folder your html pages are in.) And when you reference them, the same as with the CSS, you don't need all the "http://" stuff. You only need the exact name (remember that they're case sensative) of the document and its .identity. (ie... image.jpg, image.gif and so on.)Other than that, I don't see a problem with your code, unless you're forgetting to close the first image tag ( ie <img alt="" src="image.gif"> ) before moving on to the next. Link to comment Share on other sites More sharing options...
snowboard01 Posted June 3, 2006 Share Posted June 3, 2006 There is an error in this code:<link href="(the name of your stylesheet).css" type="text/css" ref="stylesheet" />without the slash some browsers will mess up and the code won't validate! Link to comment Share on other sites More sharing options...
The Praetorian Posted June 3, 2006 Share Posted June 3, 2006 Right. Forgot about that one. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now