Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 21st, 2005, 10:58 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default borderTopColor

Code:
if(SpecialInfo!="")
{
    SI_row = document.getElementById('demodiv_SpecialInfo').insertRow()    
    cell = SI_row.insertCell()
    cell.colSpan = "4"
    cell.style.border = "1"
    cell.style.borderTopColor = "#000000"
    cell.innerHTML = cell.innerHTML + "<img src=images/flashing_exclam.gif height=15>"
    cell.innerHTML = cell.innerHTML + "&nbsp;&nbsp;" + SpecialInfo
}

<div id="demodiv" class="demo" style="width: 707px">
<table id="demodiv_t_Main" border="1" bordercolor="<%=brdColDark%>" width="100%" height="100" summary="The Mini-Rules DIV hidden or shown onMouseOver of 'VIEW RULES'">  
<tr class="head2fnt" bordercolor="<%=brdColDark%>" height="10%">
<td colspan="2" nowrap lang="en">
    <table width="100%" id="demodiv_SpecialInfo" class="head2fnt" summary="The Special Information row (if applicable)">
    <tr class="head2fnt"></tr>
    </table>
</td>
</tr>
<tr id="MinMaxStayTable">
    <td nowrap lang="en" width="60%" id="piccolax" valign="top">
        <table id="demodiv_t" width="100%" class="demo_t" summary="List of Mini Rules for this contract">
        <tr valign="top"><td valign="top" class="border_bottom" nowrap><b>FARE RULES</b></td></tr>
        </table> 
    </td>
    <td nowrap lang="en" width="40%" id="crmpicco" valign="top">
        <table id="demodiv_t_MinMax" class="demo_t" width="100%" border="0" summary="List of Min/Max Stays for this contract">
        <tr valign="top"><td valign="top" class="border_bottom" nowrap><b>MIN/MAX STAY</b></td></tr>
        </table>
    </td>
</tr>
</table> 
</div>
Is there a way for me to have a black line as a top border for this cell
Code:
<td colspan="2" nowrap lang="en">
    <table width="100%" id="demodiv_SpecialInfo" class="head2fnt" summary="The Special Information row (if applicable)">
    <tr class="head2fnt"></tr>
    </table>
</td>
thanks.



www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
www.piccosmini.co.uk.tt
www.morton.uk.tt
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old September 21st, 2005, 11:28 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Well, provided you only have one instance of class="head2fnt" inside id="demodiv_SpecialInfo"...

#demodiv_SpecialInfo .head2fnt { border-top: 2px solid #000 }

--
http://yupapa.com









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.