STUPID GAP

Status
Not open for further replies.

golz

New Member
Messages
140
Reaction score
0
Points
0
Ok, I'm fixing up my site now and the layout is driving me crazy. You can see it here.

There a stupid gap between the main image and the content. I use PHP includes, but if you just look at the code this is what it says:

<center>
<img src="/images/lay1.jpg">
<table>
<tr><td class="main">
[content goes here]

For those of you wondering what I defined for the main class, here you go:

.main{
background: white;
width: 596px;
border: 1px solid #666;
border-width: 0px 1px 1px 1px
font: normal 8pt tahoma;
}

Oh another thing. You know how you can change font sizes by holding control and scrolling the middle wheel on the mouse? Is there a way to disable that? Sorry I'm asking for so much help. I hate being retarded, lol.
 

audionation

New Member
Messages
132
Reaction score
0
Points
0
Erm....

I dont know much about this stuff but have you tried taking away the border stuff and see what happens.

Thanks,
Steven Ross
 

golz

New Member
Messages
140
Reaction score
0
Points
0
I tried, but it didn't work :(. Thanks for the suggestion though.
 

audionation

New Member
Messages
132
Reaction score
0
Points
0
I think this is it.

I dont know what html came from the php include function but I hope this helps. The following works for me:

<head>
<title>LUX: Fonts, downloads, you name it.</title>
<link rel="stylesheet" type="text/css" href="/skins/lux1.css">

<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!-- if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random());
phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
document.write ("&amp;what=zone:2&amp;target=_blank");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
document.write ("'><" + "/script>"); //-->
</script><noscript>
</head>



<body>
<a href='http://x10hosting.com/advert/adclick.php?n=a7a73694' target='_blank'>
<img src='http://x10hosting.com/advert/adview.php?what=zone:2&amp;n=a7a73694' border='0' alt=''></a>
</noscript>
<p>
<br>
<center><img src="/images/lay1.jpg" width="600" height="220" border="0" alt="" usemap="#lay1" align="top">
<map name="lay1">
<area shape="rect" alt="download random goodies" coords="135,204,193,211" href="/dloads/dloads.php">
<area shape="rect" alt="font downloads" coords="90,204,120,211" href="/fonts/fonts.php">
<area shape="rect" alt="all about me" coords="61,204,76,211" href="/me/me.php">
<area shape="rect" alt="back to the homepage" coords="21,204,48,212" href="/index.php">
</map>
<table cellspacing="0" cellpadding="0">
<tr><td class="main">

This website is under construction. Sorry!!

</td></tr>
</table>

</body>


Thanks,
Steven Ross
 

Rhianna

New Member
Messages
988
Reaction score
0
Points
0
golz said:
Ok, I'm fixing up my site now and the layout is driving me crazy. You can see it here.

There a stupid gap between the main image and the content. I use PHP includes, but if you just look at the code this is what it says:

~snip~

Oh another thing. You know how you can change font sizes by holding control and scrolling the middle wheel on the mouse? Is there a way to disable that? Sorry I'm asking for so much help. I hate being retarded, lol.

golz,

I'd like to suggest two resources that might be of help to you:

PHP PHP: Image Functions - Manual

NYPHP - PHundamentals - Site Structure: Where to Locate Includes?

If your question is not answered on those exact pages, you might want to browse those two sites, I think they are good :)

I hope those two links help :)
 

golz

New Member
Messages
140
Reaction score
0
Points
0
Thanks all!! It's working now... I'm so glad it's goooooooone :):):)
 

audionation

New Member
Messages
132
Reaction score
0
Points
0
its OK

Yeh, just a tip for you, import your website into frontpage and fiddle with aligning thats how I got the gap to go away.

Thanks,
Steven Ross
 
Status
Not open for further replies.
Top