no put
:)Code:body {
margin-top: 0px;
}
Printable View
no put
:)Code:body {
margin-top: 0px;
}
Hey,
Yeah do as Charlie said. I forgot that tag... *looks at usertitle*...
- Dan
and then oput that other code you gave me in my index ...?
yes the <link> one :)
Ok, its not working, jsut go to my site and check out the coding....
oh and rate the site so far people :P lol
http://www.nick.habbo-gossip.com/
You have not added the external stylesheet link. You need this to connect main.css to your webpage. Here is the full source code with the external stylesheet in.
HTML Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="main.css" type="text/css" />
<title>Habbonicle! For your Habbo Needs!</title>
</head>
<div align="center">
<body background="http://www.nick.habbo-gossip.com/background_blue.PNG">
<br />
<br />
<table width="940" height="670" border="0" cellspacing="0" background="http://www.nick.habbo-gossip.com/template.gif" cellpadding="0">
<!-- TemplateBeginRepeat name="RepeatRegion1" -->
<tr>
<td width="2%" height="97"> </td>
<td width="23%"> </td>
<td width="1%"> </td>
<td width="46%"> </td>
<td width="28%"> </td>
</tr>
<!-- TemplateEndRepeat -->
<tr>
<td height="429"> </td>
<td align="center" valign="middle"><iframe name=nav src=nav.htm width=175 height=370 frameborder=0 scrolling=auto allowtransparency="true" background-color="transparent" > </iframe>
</td>
<td> </td>
<td align="center" valign="top"><iframe name=main src=main.htm width=420 height=430 frameborder=0 scrolling=auto allowtransparency="true" background-color="transparent" > </iframe>
</td>
<td> </td>
</tr>
<tr>
<td height="19"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="120"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
guru and what do i put in main.css ...?
You put only the CSS with no HTML so your main.css would look like this exactly:
You do not need to add anything else into the CSS file unless it's more CSS for styling and other purposes. I would reccommend looking into learning CSS as you can do many things with it. Try CSS Zen it's really good once you get into it.HTML Code:body {
margin-top: 0px;
}
see look at my site now..... i did that ... it still doesnt work
You still haven't linked the external stylesheet and are trying to use CSS before even your Doctype which will not work. Copy and paste the code I gave you or just inside your <head> section put this code:
HTML Code:<link rel="stylesheet" href="main.css" type="text/css" />