Html Help

Status
Not open for further replies.

becroydon

In Runtime
Messages
283
i want to put a border around the text that comes from the java script, but the div tag dont seem to work....please help im new to html, also does anyone know how to make only the right side of a table column show up and the other sides remain invisible.

oh and also i wanna make the border red.

thanks

Code:
<html>

<head>
<title>New Page 1</title>
</head>

<body>
<table>
<tr>
<td width="15%"></td>
<td width="85%">
<div align="center" border="3">
<script type="text/javascript" src="parasite.js"></script>
<script type="text/javascript" src="report.js"></script>
</div>
</td>
</tr>
</table>

</body>

</html>
 
If you want to make a border around the text, you will need to do it in CSS...

For example

.whatever {
font-family: Verdana;
font-size: 10px;
color: #000000;
border: thin solid #000000;
}
 
ok and do i need to make a new file called ___.css
and what do i add the that html to lead me back to the style sheet......NOOBIE!!!!!
 
ah man, i got it working, then when i tried to change the border color it just stopped working, even when i change it back to black it dont word.

ahhhhhhh i should have just left it alone!!!
 
No, you can add the css directly into the .html file. Just put in like this:
Code:
<head>
<style>
CSS GOES HERE!
</style>
</head>
Or you can make a *.css file and use the
Code:
<link> and </link>
tags.
If you want to use your css use the
Code:
<div> or <span>
Just use the Style="blah css goes here" attribute in either one.
 
Status
Not open for further replies.
Back
Top Bottom