Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi I am not sure if I'm right h

Status
Not open for further replies.

hotreca

Technical User
Nov 19, 2002
25
0
0
DE
Hi

I am not sure if I'm right here but although this is a php page, I have a html problem.

I want a DIV container which streches 100% of the visible screen bur it just doesn't seem to work ther is always a gap on the right hand side.

Here is the code!
<body>
<?php
include (&quot;inc/header.html&quot;); ?>
<!--<DIV id=&quot;header&quot; class=&quot;header&quot; style=&quot;position:absolute; left:0px; top:0px; right:px; width:100%; height:100px; z-index:1&quot; ><IMG src=&quot;/images/header1.jpg&quot; width=&quot;600px&quot; height=&quot;100&quot; align=&quot;left&quot;></DIV>-->

<?php
include (&quot;inc/footer.html&quot;); ?>
<!-- <TABLE width=&quot;100%&quot; align=&quot;center&quot;><tr><td align=&quot;center&quot;>powered by:</td></tr><tr>
<td align=&quot;center&quot;><IMG src=&quot;logo.jpg&quot; width=&quot;100&quot; height=&quot;40&quot; border=&quot;0&quot; /></td>
</tr></TABLE>-->
</body>


Any Hints would be appreciated
 
Is it the margin settings in the body of the page that you need to set to &quot;0&quot;??
 
Also, if it's not the <body> margin settings, it looks like you forgot to specify the right px in your <div> tag.

left:0px; top:0px; right:px;

Should be:

left:0px; top:0px; right:0px;


Hope This Helps!

Ecobb
- I hate computers!
 
Thanks for the answers.
I solved it!!!
The problem was that a &quot;class&quot; tag interfered with the body tag.

THANKS A MIL FOR THE ANSWERS ANYWAY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top