contra10 Posted January 17, 2009 Share Posted January 17, 2009 i have a code on one of my profile.php page and the css code is <html> <center><div class="bl" align="center" ><div class="br"><div class="tl"><div class="tr"> <b>Advertisments</b> </FONT> </div></div></div></div> <style> .bl {background: url(bl.png) 0 100% no-repeat #0094f7; width: 25em; height:5em; margin-center: 60px} .br {background: url(br.png) 100% 100% no-repeat; height: 5em;} .tl {background: url(tl.png) 0 0 no-repeat} .tr {background: url(tr.png) 100% 0 no-repeat} </style> </center></html> when i include my header the border which is supposed to be <html> <div class="bl" align="center" ><div class="br"> .... .... </div></div> <style> .bl {background: url("C:\wamp\www\bl.png") 0 100% no-repeat black; width: 60em; height:2em; margin-center: 0px} .br {background: url("C:\wamp\www\br.png") 100% 100% no-repeat; height: 5em;} </style> </center> </html> takes on the shape of the border on profile.php page...i checked to see if all my tags were closed and they are Quote Link to comment Share on other sites More sharing options...
CyberShot Posted January 18, 2009 Share Posted January 18, 2009 well i can see from what you posted that the style tag is incomplete. I don't know for sure that it matters. but it is suppose to be <style type="text/css"> </style> You should also put those styles in an external stylesheet. that could help you track down some problems. I also noticed that a lot of your rules at the end are missing semi-colons. You really should include them. It is considered sloppy code to leave them out. Quote Link to comment Share on other sites More sharing options...
dropfaith Posted January 18, 2009 Share Posted January 18, 2009 styles should also be in the head of the document not inside the html unless using inline styles such as div style="" Quote Link to comment 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.