...

View Full Version : Can i change color for [fieldset]?



Ahmod
10-15-2007, 03:03 AM
hello all,

Can i change color for the code
<fieldset></fieldset>

SnakeOiler
10-15-2007, 03:29 AM
Yes, you can.

border-color

Ahmod
10-15-2007, 01:38 PM
thank you

but look to this pic

http://www.zozika.net/fieldset.jpg

there are Difference between the first and the second

i mean that when i use the code border-color

the border became more thick

and it's my code


<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div><fieldset style="border-color: #FF0000"><legend><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a></legend>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>

<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div>
<else />&nbsp;</if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]<p>
<if condition="$vboptions['showmoderatorcolumn']">
<span class="smallfont">$forum[moderators]&nbsp;</span>
</if></div></if></fieldset>
</div></td>
<br>
<fieldset>
<legend>
<td class="alt2" nowrap="nowrap">$forum[replycount]</td></legend>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[lastpostinfo]</td>
</tr>
$childforumbits
</fieldset>

vexen
10-15-2007, 06:51 PM
border:1px solid #f00

is this what you are looking for? i do not really understand :/

SnakeOiler
10-16-2007, 12:55 AM
<snip>there are Difference between the first and the second

i mean that when i use the code border-color

the border became more thick

and it's my code

doesn't look any thicker to me.

_Aerospace_Eng_
10-16-2007, 12:59 AM
doesn't look any thicker to me.

It is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
fieldset {
width:400px;
margin:40px auto;
display:block;
}
</style>
</head>

<body>
<fieldset style="border-color:#F00;"></fieldset>
<fieldset style="border:1px solid #F00;"></fieldset>
</body>
</html>

Just compare them yourself. If you don't specify a width or border-type then an inset given to the fieldset. I tested this in IE7 and FF2.0.0.7



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum