runnerjp Posted February 20, 2007 Share Posted February 20, 2007 <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 Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/ Share on other sites More sharing options...
ToonMariner Posted February 20, 2007 Share Posted February 20, 2007 Are you 12? Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189515 Share on other sites More sharing options...
runnerjp Posted February 20, 2007 Author Share Posted February 20, 2007 u r harsh im new to this and u have to do things to be able to learn them Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189519 Share on other sites More sharing options...
ToonMariner Posted February 20, 2007 Share Posted February 20, 2007 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... Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189536 Share on other sites More sharing options...
runnerjp Posted February 20, 2007 Author Share Posted February 20, 2007 ok have look at site now http://www.runnerselite.com i have followed it all and correct just about every code i have come across ( lissened and followed ) Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189553 Share on other sites More sharing options...
ToonMariner Posted February 20, 2007 Share Posted February 20, 2007 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... Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189581 Share on other sites More sharing options...
runnerjp Posted February 20, 2007 Author Share Posted February 20, 2007 thank you that would be a bigg help.... that way i can atleast see what im amaing to do Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189588 Share on other sites More sharing options...
ToonMariner Posted February 20, 2007 Share Posted February 20, 2007 OK here are both files... you can change the name of example.html to index and just copy style.css into you css folder... Now it may not be exactly right but it won't be far off... [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189596 Share on other sites More sharing options...
runnerjp Posted February 20, 2007 Author Share Posted February 20, 2007 so every time you want to style something you called it div id ="name" then styled it in the css folder so that then its less cluttered.... is that right ?? Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189604 Share on other sites More sharing options...
ToonMariner Posted February 20, 2007 Share Posted February 20, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189626 Share on other sites More sharing options...
runnerjp Posted February 20, 2007 Author Share Posted February 20, 2007 well i called the sheet u made new.css and made a css folder im messing around with it at mo but i dont gt the style part :S is there a good website i can look at or anything you would recomend Quote Link to comment https://forums.phpfreaks.com/topic/39308-is-this-correct/#findComment-189643 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.