Jump to content

Recommended Posts

<style type="text/css">
<!--
#background {
width: 2px;
height: 100%;
background:url(http://www.runnerselite.com/images/linedown.jpg);
background-repeat: repeat-y;
margin-left: 200px;
margin-top: 200px;
}
-->



<!--
#background2 {
width: 100%;
height: 2px;
background:url(http://www.runnerselite.com/images/line.jpg);
background-repeat: repeat-x;
margin-left: 200px;
margin-top: 200px;
}
-->
</style>

 

i have put this into a css file.... is it correct to show the two images because the bottom 1 does not show :S

Link to comment
https://forums.phpfreaks.com/topic/39308-is-this-correct/
Share on other sites

Correct - but you post the same question five times and ignore the correct answer given to you after the first one! You say it still doesn't work when and then when we finally get to see your mark - up there is no wonder why.

 

Learning to do this kind of stuff is a wonderful thing but when others do help and you ignore it it is frustrating...

 

We all want everybody to get the help they need and to have a bit of fun doing it - your particular issues are down to fundamental understanding of the technology involved- In my opinion your time would be better spent (and you would learn much more in a short space of time) if you used www.w3schools.com for a few days...

 

Pay particular attention to the Learn HTML section here http://www.w3schools.com/html/default.asp...

Link to comment
https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189536
Share on other sites

Its better BUT still along way to go sunshine...

 

Try to use semantic mark up and apply style to elements there - try not to add elements just for styling if you can avoid it...

 

here is my interpretation of you page....

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
	<title>HomePage</title>
	<link rel="stylesheet" type="text/css" href="css/line.css">
</head>
<body>
	<div id="header">
		<h1><span>Runners Elite</span></h1>
		<div id="register">
			Welcome <span>Guest</span> please <a href="register.php">Register</a>
		</div>
	</div>
	<div id="content">
		<img src="http://www.runnerselite.com/images/training.jpg" alt="Runner Trainng" width="120" height="120">
		Welcome to RunnersElite! All over the net many profile sites have
		sprung up, but our team thought the web needed a site for
		athletes to post their own profiles, this is when RunnersElite
		was formed, to enable athletes such as your selfs to get yourself
		known on the web. You dont have to be elite to be part of this
		website, you could be a fun runner, do it to keep fit or have any
		kind of fitness you can imagin. The best thing about RunnersElite
		is that its FREE, so why not join today!
	</div>
</body>
</html>

 

I will just quick do the css and then you can upload them both and see the results...

Link to comment
https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189581
Share on other sites

You only have to give something an id or a class if you want it to obey a set of styles.

 

Elements can inherit styles from their parent elements also so if you plan it right you can get great results with very little work.

 

Cutting down the html means your page will load faster and you will have a much more manageable site.

 

PS I see you have destroyed it already or is it my fault for not putting the correct path the the style sheet in?

Link to comment
https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189626
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.