PDA

View Full Version : Need some html help


Hogleg
02-22-2001, 07:29 PM
Can you apply ccs to tables or is ccs just for text. I want to make a tables border change colors when you mouse over it. I can do it to text but not to a table please help

Ron
02-22-2001, 08:33 PM
I think there is some sort of JavaScript that will do that, i found it at JavaScript.com.. hope that helps some.

Hogleg
02-22-2001, 08:37 PM
I took a look but I don't know what the hell to look for

Lizard
02-22-2001, 09:00 PM
Yes, you can apply css to tables, or any
html element for that matter...

Example style declaration:



#MyTable {
font-size : 12;
font-family : Verdana;
color : Aqua;
}



Attach your css to a table (or any html element) like this:


<table ID=MyTable>
...


What you are looking for is dhtml I think,
try to look around at cnet.com in the builder
section...

Hogleg
02-22-2001, 09:08 PM
I'm using dreamweaver if anyone knows how to do it that way

Dreamer
02-22-2001, 09:17 PM
Press that little button that looks like
<> (bottom right corner)

Hogleg
02-22-2001, 09:19 PM
That button no help

Lizard
02-22-2001, 09:42 PM
FrontPage 2k (Spit, cough) can do some basic
dhtml stuff...

(Make sure the 'dhtml effects' toolbar is on)

'Draw' your table, select it, choose 'on mouse over' then 'Apply formatting' and then 'choose border' and voila...

I guess that horrible contraption known as
frontpage can serve a purpose http://bbs.adultwebmasterinfo.com/ubb/biggrin.gif

aprilvirgo
02-23-2001, 07:46 AM
Hogleg, I also use Dreamweaver, just yesterday I was looking through their help section for something and happened upon how to more easily change the border on certain parts of a table. I can't be for sure that it had info on how to do a mouseover type thing with it but check it out http://bbs.adultwebmasterinfo.com/ubb/smile.gif By the help section I mean the button that sends you to their site not the lessons or reference part. Probably no help but it was the only thing I could think of http://bbs.adultwebmasterinfo.com/ubb/smile.gif

Hogleg
02-23-2001, 08:25 AM
I'll check it out thanks

Dreamer
02-23-2001, 10:48 AM
Does anybody know how to make good looking table borders?

I mean, if I want to make good borders with Dreamweaver I must make 2 tables, one inside other (for example width of first is 300/ black background and second is 298/ white background)! If I just set border line to 1 pixel then it looks bad! Don't know why.

But look at this guy website!
http://www.xxx-place.com/ . His top referer table looks good and he isn't using 2 tables for it! How ???

I know that Front Page can go this but I don't want to mix Dreamweaver and FP when I make sites!

Lizard
02-23-2001, 11:07 AM
Dreamer,

Set your table color to the color you want
your border to be, then set border=1 and
cellspacing/cellpadding to 1 or more.

Now set all your cell's colors to the color
your want your table.

Or... (MS only solution)


<table border="1" cellpadding="0" cellspacing="0" width="200" bordercolorlight="#000000" bordercolordark="#C0C0C0" bordercolor="#C0C0C0">


Set your border and dark border to the
bgcolor of your page, and set your light
border to the bordercolor you want...

I guess there is a way to do it with a
stylesheet but I cant remember how right now...

Dreamer
02-23-2001, 11:35 AM
Thanks dude, if this works I think that my front page will have at least 25kb less in it http://bbs.adultwebmasterinfo.com/ubb/biggrin.gif