Jump to content

border style copies to all pages


contra10

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/141178-border-style-copies-to-all-pages/
Share on other sites

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.

Archived

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

×
×
  • 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.