Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can i change color for [fieldset]?

    hello all,

    Can i change color for the code
    PHP Code:
    <fieldset></fieldset

  • #2
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yes, you can.

    border-color

  • #3
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you

    but look to this pic



    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
    PHP 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

  • #4
    New Coder
    Join Date
    Jun 2007
    Location
    Quebec, Canada
    Posts
    64
    Thanks
    4
    Thanked 3 Times in 3 Posts
    border:1px solid #f00

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

  • #5
    New to the CF scene
    Join Date
    Oct 2007
    Posts
    3
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Ahmod View Post
    <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.

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Quote Originally Posted by SnakeOiler View Post
    doesn't look any thicker to me.
    It is
    Code:
    <!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
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •