Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 08-04-2004, 08:18 AM   #1 (permalink)
 
Super Techie

Join Date: Apr 2004

Posts: 283

becroydon

Default Html Help

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>

__________________
My Spyware Site
www.becroydon.co.uk
Under Construction
becroydon is offline  
Old 08-04-2004, 08:54 AM   #2 (permalink)
ADZ
 
Master Techie

Join Date: May 2003

Posts: 2,233

ADZ is on a distinguished road

Send a message via Yahoo to ADZ
Default

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;
}
ADZ is offline  
Old 08-04-2004, 09:03 AM   #3 (permalink)
 
Super Techie

Join Date: Apr 2004

Posts: 283

becroydon

Default

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!!!!!
__________________
My Spyware Site
www.becroydon.co.uk
Under Construction
becroydon is offline  
Old 08-04-2004, 09:56 AM   #4 (permalink)
 
Super Techie

Join Date: Apr 2004

Posts: 283

becroydon

Default

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!!!
__________________
My Spyware Site
www.becroydon.co.uk
Under Construction
becroydon is offline  
Old 08-04-2004, 10:03 AM   #5 (permalink)
 
Ultra Techie

Join Date: Sep 2003

Location: Bamberg, Germany

Posts: 549

Iron_Cross

Send a message via ICQ to Iron_Cross Send a message via MSN to Iron_Cross Send a message via Yahoo to Iron_Cross
Default

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.
__________________

See today\'s Penny-Arcade!(May contain foul lanuage)
Pain is weakness leaving the body.

PM Me for my MSN
Iron_Cross is offline  
Old 08-04-2004, 04:12 PM   #6 (permalink)
ADZ
 
Master Techie

Join Date: May 2003

Posts: 2,233

ADZ is on a distinguished road

Send a message via Yahoo to ADZ
Default

Have a go at this:
http://webmonkey.wired.com/webmonkey...tutorial1.html
ADZ is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On