PC Review


Reply
Thread Tools Rate Thread

Cell Border will not Hide

 
 
=?Utf-8?B?RG9uIERlYW4=?=
Guest
Posts: n/a
 
      30th Mar 2006
Hi all.
Got a strange one that I can't figure out so need some help from all you
smart people.
I have built a table to use as a main menu in FP2003 and each cell opens
(makes visible) a submenu with a mouseover behavior. The submenus are tables
inside of absolute positioned DIVs and each cell in each submenu table has a
text link to a page. The DIVs are brought up with a mouseover on a cell in
the main menu table. Pretty standard stuff.

Everything works and looks just fine in all of the browsers that I have
tested with, except for IE and FP Preview mode.

In these two, when you initially view the main menu, the cell lines of the
submenus appear on the page, although the contents of the cells, the submenu
tables and the DIVs are all hidden, like they are supposed to be, when the
page first appears.

When I do a mouseover on a main menu cell, to bring up a submenu then it
looks OK and with a mouseout, everything disappears, like it should,
including the cell border lines of the submenus that were initially showing.

I've defined the DIVs which contain the submenus to be hidden initially.
I've run FPcleaner and restarted FP, but nothing seems to fix the problem.
Of course, if I eliminate the cell borders, then the problem doesn't happen,
but then I also don't have lines (borders) separating the text of each cell.
I'd like to keep the cell lines in the submenus, if I can.

Any ideas??? Here's the code I have in my styles page that defines the
attributes of the DIVs for the submenus and the submenu tables.

..divsubmenu
{
position: absolute;
left: 130px;
width: 220px;
visibility: hidden;
padding-top: 30px;
padding-bottom: 30px;
}
..tabsubmenu
{
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
width: 100%;
background-color: #B7DBFF;
border-collapse: collapse;
border: 1pt #003399 solid;
}
..tabsubmenu td
{
padding-left: 7px;
padding-top: 2px;
padding-bottom: 2px;
border: 1pt #003399 solid;
}

--
Thanks, Don
*********
 
Reply With Quote
 
 
 
 
Murray
Guest
Posts: n/a
 
      30th Mar 2006
> In these two, when you initially view the main menu, the cell lines of the
> submenus appear on the page, although the contents of the cells, the
> submenu
> tables and the DIVs are all hidden, like they are supposed to be, when the
> page first appears.


Yes - that's what happens when you use border-collapse on the borders on the
tables in those hidden divs. It's an IE bug.

The way around it is to style your table's borders completely differently -

td { border: 1px solid black; border-top:none; border-right:none; }
td.top { border-top:solid; }
td.right { border-right:solid; }

Then make the top row have a class of top, and the right cell have a class
of right, e.g.,

<table width="200" border="1" cellpadding="0" cellspacing="0">
<tr>
<td class="top">&nbsp;</td>
<td class="top">&nbsp;</td>
<td class="top right">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td class="right">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td class="right">&nbsp;</td>
</tr>
</table>


--
Murray
--------------
MVP FrontPage


"Don Dean" <(E-Mail Removed)> wrote in message
news:65295E68-757F-4469-9304-(E-Mail Removed)...
> Hi all.
> Got a strange one that I can't figure out so need some help from all you
> smart people.
> I have built a table to use as a main menu in FP2003 and each cell opens
> (makes visible) a submenu with a mouseover behavior. The submenus are
> tables
> inside of absolute positioned DIVs and each cell in each submenu table has
> a
> text link to a page. The DIVs are brought up with a mouseover on a cell
> in
> the main menu table. Pretty standard stuff.
>
> Everything works and looks just fine in all of the browsers that I have
> tested with, except for IE and FP Preview mode.
>
> In these two, when you initially view the main menu, the cell lines of the
> submenus appear on the page, although the contents of the cells, the
> submenu
> tables and the DIVs are all hidden, like they are supposed to be, when the
> page first appears.
>
> When I do a mouseover on a main menu cell, to bring up a submenu then it
> looks OK and with a mouseout, everything disappears, like it should,
> including the cell border lines of the submenus that were initially
> showing.
>
> I've defined the DIVs which contain the submenus to be hidden initially.
> I've run FPcleaner and restarted FP, but nothing seems to fix the problem.
> Of course, if I eliminate the cell borders, then the problem doesn't
> happen,
> but then I also don't have lines (borders) separating the text of each
> cell.
> I'd like to keep the cell lines in the submenus, if I can.
>
> Any ideas??? Here's the code I have in my styles page that defines the
> attributes of the DIVs for the submenus and the submenu tables.
>
> .divsubmenu
> {
> position: absolute;
> left: 130px;
> width: 220px;
> visibility: hidden;
> padding-top: 30px;
> padding-bottom: 30px;
> }
> .tabsubmenu
> {
> font-family: Arial, Helvetica, sans-serif;
> font-size: 12px;
> color: #000000;
> width: 100%;
> background-color: #B7DBFF;
> border-collapse: collapse;
> border: 1pt #003399 solid;
> }
> .tabsubmenu td
> {
> padding-left: 7px;
> padding-top: 2px;
> padding-bottom: 2px;
> border: 1pt #003399 solid;
> }
>
> --
> Thanks, Don
> *********



 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      30th Mar 2006
Here's an illustration of this beast -

http://www.murraytestsite.com/border-collapse.html

--
Murray
--------------
MVP FrontPage


"Murray" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> In these two, when you initially view the main menu, the cell lines of
>> the
>> submenus appear on the page, although the contents of the cells, the
>> submenu
>> tables and the DIVs are all hidden, like they are supposed to be, when
>> the
>> page first appears.

>
> Yes - that's what happens when you use border-collapse on the borders on
> the tables in those hidden divs. It's an IE bug.
>
> The way around it is to style your table's borders completely
> differently -
>
> td { border: 1px solid black; border-top:none; border-right:none; }
> td.top { border-top:solid; }
> td.right { border-right:solid; }
>
> Then make the top row have a class of top, and the right cell have a class
> of right, e.g.,
>
> <table width="200" border="1" cellpadding="0" cellspacing="0">
> <tr>
> <td class="top">&nbsp;</td>
> <td class="top">&nbsp;</td>
> <td class="top right">&nbsp;</td>
> </tr>
> <tr>
> <td>&nbsp;</td>
> <td>&nbsp;</td>
> <td class="right">&nbsp;</td>
> </tr>
> <tr>
> <td>&nbsp;</td>
> <td>&nbsp;</td>
> <td class="right">&nbsp;</td>
> </tr>
> </table>
>
>
> --
> Murray
> --------------
> MVP FrontPage
>
>
> "Don Dean" <(E-Mail Removed)> wrote in message
> news:65295E68-757F-4469-9304-(E-Mail Removed)...
>> Hi all.
>> Got a strange one that I can't figure out so need some help from all you
>> smart people.
>> I have built a table to use as a main menu in FP2003 and each cell opens
>> (makes visible) a submenu with a mouseover behavior. The submenus are
>> tables
>> inside of absolute positioned DIVs and each cell in each submenu table
>> has a
>> text link to a page. The DIVs are brought up with a mouseover on a cell
>> in
>> the main menu table. Pretty standard stuff.
>>
>> Everything works and looks just fine in all of the browsers that I have
>> tested with, except for IE and FP Preview mode.
>>
>> In these two, when you initially view the main menu, the cell lines of
>> the
>> submenus appear on the page, although the contents of the cells, the
>> submenu
>> tables and the DIVs are all hidden, like they are supposed to be, when
>> the
>> page first appears.
>>
>> When I do a mouseover on a main menu cell, to bring up a submenu then it
>> looks OK and with a mouseout, everything disappears, like it should,
>> including the cell border lines of the submenus that were initially
>> showing.
>>
>> I've defined the DIVs which contain the submenus to be hidden initially.
>> I've run FPcleaner and restarted FP, but nothing seems to fix the
>> problem.
>> Of course, if I eliminate the cell borders, then the problem doesn't
>> happen,
>> but then I also don't have lines (borders) separating the text of each
>> cell.
>> I'd like to keep the cell lines in the submenus, if I can.
>>
>> Any ideas??? Here's the code I have in my styles page that defines the
>> attributes of the DIVs for the submenus and the submenu tables.
>>
>> .divsubmenu
>> {
>> position: absolute;
>> left: 130px;
>> width: 220px;
>> visibility: hidden;
>> padding-top: 30px;
>> padding-bottom: 30px;
>> }
>> .tabsubmenu
>> {
>> font-family: Arial, Helvetica, sans-serif;
>> font-size: 12px;
>> color: #000000;
>> width: 100%;
>> background-color: #B7DBFF;
>> border-collapse: collapse;
>> border: 1pt #003399 solid;
>> }
>> .tabsubmenu td
>> {
>> padding-left: 7px;
>> padding-top: 2px;
>> padding-bottom: 2px;
>> border: 1pt #003399 solid;
>> }
>>
>> --
>> Thanks, Don
>> *********

>
>



 
Reply With Quote
 
=?Utf-8?B?RG9uIERlYW4=?=
Guest
Posts: n/a
 
      31st Mar 2006
Thanks for the help Murray.
Sorry for my slow response to your answer. I spent the day getting hooked
up to DSL (as opposed to the old 28K modem I was using) Had a few problems
to work out, but the speed is so, so nice.)

I'll try your solution. Thanks also for the reference URL.
--
Don
*********


"Murray" wrote:

> Here's an illustration of this beast -
>
> http://www.murraytestsite.com/border-collapse.html
>
> --
> Murray
> --------------
> MVP FrontPage
>
>
> "Murray" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >> In these two, when you initially view the main menu, the cell lines of
> >> the
> >> submenus appear on the page, although the contents of the cells, the
> >> submenu
> >> tables and the DIVs are all hidden, like they are supposed to be, when
> >> the
> >> page first appears.

> >
> > Yes - that's what happens when you use border-collapse on the borders on
> > the tables in those hidden divs. It's an IE bug.
> >
> > The way around it is to style your table's borders completely
> > differently -
> >
> > td { border: 1px solid black; border-top:none; border-right:none; }
> > td.top { border-top:solid; }
> > td.right { border-right:solid; }
> >
> > Then make the top row have a class of top, and the right cell have a class
> > of right, e.g.,
> >
> > <table width="200" border="1" cellpadding="0" cellspacing="0">
> > <tr>
> > <td class="top"> </td>
> > <td class="top"> </td>
> > <td class="top right"> </td>
> > </tr>
> > <tr>
> > <td> </td>
> > <td> </td>
> > <td class="right"> </td>
> > </tr>
> > <tr>
> > <td> </td>
> > <td> </td>
> > <td class="right"> </td>
> > </tr>
> > </table>
> >
> >
> > --
> > Murray
> > --------------
> > MVP FrontPage
> >
> >
> > "Don Dean" <(E-Mail Removed)> wrote in message
> > news:65295E68-757F-4469-9304-(E-Mail Removed)...
> >> Hi all.
> >> Got a strange one that I can't figure out so need some help from all you
> >> smart people.
> >> I have built a table to use as a main menu in FP2003 and each cell opens
> >> (makes visible) a submenu with a mouseover behavior. The submenus are
> >> tables
> >> inside of absolute positioned DIVs and each cell in each submenu table
> >> has a
> >> text link to a page. The DIVs are brought up with a mouseover on a cell
> >> in
> >> the main menu table. Pretty standard stuff.
> >>
> >> Everything works and looks just fine in all of the browsers that I have
> >> tested with, except for IE and FP Preview mode.
> >>
> >> In these two, when you initially view the main menu, the cell lines of
> >> the
> >> submenus appear on the page, although the contents of the cells, the
> >> submenu
> >> tables and the DIVs are all hidden, like they are supposed to be, when
> >> the
> >> page first appears.
> >>
> >> When I do a mouseover on a main menu cell, to bring up a submenu then it
> >> looks OK and with a mouseout, everything disappears, like it should,
> >> including the cell border lines of the submenus that were initially
> >> showing.
> >>
> >> I've defined the DIVs which contain the submenus to be hidden initially.
> >> I've run FPcleaner and restarted FP, but nothing seems to fix the
> >> problem.
> >> Of course, if I eliminate the cell borders, then the problem doesn't
> >> happen,
> >> but then I also don't have lines (borders) separating the text of each
> >> cell.
> >> I'd like to keep the cell lines in the submenus, if I can.
> >>
> >> Any ideas??? Here's the code I have in my styles page that defines the
> >> attributes of the DIVs for the submenus and the submenu tables.
> >>
> >> .divsubmenu
> >> {
> >> position: absolute;
> >> left: 130px;
> >> width: 220px;
> >> visibility: hidden;
> >> padding-top: 30px;
> >> padding-bottom: 30px;
> >> }
> >> .tabsubmenu
> >> {
> >> font-family: Arial, Helvetica, sans-serif;
> >> font-size: 12px;
> >> color: #000000;
> >> width: 100%;
> >> background-color: #B7DBFF;
> >> border-collapse: collapse;
> >> border: 1pt #003399 solid;
> >> }
> >> .tabsubmenu td
> >> {
> >> padding-left: 7px;
> >> padding-top: 2px;
> >> padding-bottom: 2px;
> >> border: 1pt #003399 solid;
> >> }
> >>
> >> --
> >> Thanks, Don
> >> *********

> >
> >

>
>
>

 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      31st Mar 2006
You're welcome. Good luck!

--
Murray
--------------
MVP FrontPage


"Don Dean" <(E-Mail Removed)> wrote in message
news:5213AB2C-35E3-48F2-885D-(E-Mail Removed)...
> Thanks for the help Murray.
> Sorry for my slow response to your answer. I spent the day getting hooked
> up to DSL (as opposed to the old 28K modem I was using) Had a few
> problems
> to work out, but the speed is so, so nice.)
>
> I'll try your solution. Thanks also for the reference URL.
> --
> Don
> *********
>
>
> "Murray" wrote:
>
>> Here's an illustration of this beast -
>>
>> http://www.murraytestsite.com/border-collapse.html
>>
>> --
>> Murray
>> --------------
>> MVP FrontPage
>>
>>
>> "Murray" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> >> In these two, when you initially view the main menu, the cell lines of
>> >> the
>> >> submenus appear on the page, although the contents of the cells, the
>> >> submenu
>> >> tables and the DIVs are all hidden, like they are supposed to be, when
>> >> the
>> >> page first appears.
>> >
>> > Yes - that's what happens when you use border-collapse on the borders
>> > on
>> > the tables in those hidden divs. It's an IE bug.
>> >
>> > The way around it is to style your table's borders completely
>> > differently -
>> >
>> > td { border: 1px solid black; border-top:none; border-right:none; }
>> > td.top { border-top:solid; }
>> > td.right { border-right:solid; }
>> >
>> > Then make the top row have a class of top, and the right cell have a
>> > class
>> > of right, e.g.,
>> >
>> > <table width="200" border="1" cellpadding="0" cellspacing="0">
>> > <tr>
>> > <td class="top"> </td>
>> > <td class="top"> </td>
>> > <td class="top right"> </td>
>> > </tr>
>> > <tr>
>> > <td> </td>
>> > <td> </td>
>> > <td class="right"> </td>
>> > </tr>
>> > <tr>
>> > <td> </td>
>> > <td> </td>
>> > <td class="right"> </td>
>> > </tr>
>> > </table>
>> >
>> >
>> > --
>> > Murray
>> > --------------
>> > MVP FrontPage
>> >
>> >
>> > "Don Dean" <(E-Mail Removed)> wrote in message
>> > news:65295E68-757F-4469-9304-(E-Mail Removed)...
>> >> Hi all.
>> >> Got a strange one that I can't figure out so need some help from all
>> >> you
>> >> smart people.
>> >> I have built a table to use as a main menu in FP2003 and each cell
>> >> opens
>> >> (makes visible) a submenu with a mouseover behavior. The submenus are
>> >> tables
>> >> inside of absolute positioned DIVs and each cell in each submenu table
>> >> has a
>> >> text link to a page. The DIVs are brought up with a mouseover on a
>> >> cell
>> >> in
>> >> the main menu table. Pretty standard stuff.
>> >>
>> >> Everything works and looks just fine in all of the browsers that I
>> >> have
>> >> tested with, except for IE and FP Preview mode.
>> >>
>> >> In these two, when you initially view the main menu, the cell lines of
>> >> the
>> >> submenus appear on the page, although the contents of the cells, the
>> >> submenu
>> >> tables and the DIVs are all hidden, like they are supposed to be, when
>> >> the
>> >> page first appears.
>> >>
>> >> When I do a mouseover on a main menu cell, to bring up a submenu then
>> >> it
>> >> looks OK and with a mouseout, everything disappears, like it should,
>> >> including the cell border lines of the submenus that were initially
>> >> showing.
>> >>
>> >> I've defined the DIVs which contain the submenus to be hidden
>> >> initially.
>> >> I've run FPcleaner and restarted FP, but nothing seems to fix the
>> >> problem.
>> >> Of course, if I eliminate the cell borders, then the problem doesn't
>> >> happen,
>> >> but then I also don't have lines (borders) separating the text of each
>> >> cell.
>> >> I'd like to keep the cell lines in the submenus, if I can.
>> >>
>> >> Any ideas??? Here's the code I have in my styles page that defines
>> >> the
>> >> attributes of the DIVs for the submenus and the submenu tables.
>> >>
>> >> .divsubmenu
>> >> {
>> >> position: absolute;
>> >> left: 130px;
>> >> width: 220px;
>> >> visibility: hidden;
>> >> padding-top: 30px;
>> >> padding-bottom: 30px;
>> >> }
>> >> .tabsubmenu
>> >> {
>> >> font-family: Arial, Helvetica, sans-serif;
>> >> font-size: 12px;
>> >> color: #000000;
>> >> width: 100%;
>> >> background-color: #B7DBFF;
>> >> border-collapse: collapse;
>> >> border: 1pt #003399 solid;
>> >> }
>> >> .tabsubmenu td
>> >> {
>> >> padding-left: 7px;
>> >> padding-top: 2px;
>> >> padding-bottom: 2px;
>> >> border: 1pt #003399 solid;
>> >> }
>> >>
>> >> --
>> >> Thanks, Don
>> >> *********
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide cell select border when clicked dgold82 Microsoft Excel Programming 2 28th Jul 2009 05:28 PM
border on last cell of page effects border on beginning cell of ne GaryE Microsoft Excel Misc 0 23rd Mar 2009 05:47 AM
Hide the Box / border around a txt Field dan2bhm via AccessMonster.com Microsoft Access Form Coding 2 26th Jul 2006 12:32 AM
Changing the border of one cell s/n change the border of adjacent =?Utf-8?B?Z2phbnNzZW5tbg==?= Microsoft Excel Misc 2 5th Oct 2005 08:35 PM
Body of page appears in Top Border, Left Border and Bottom Border (there is no right border) Michael Edwards Microsoft Frontpage 1 14th Oct 2004 09:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:05 PM.