Log In · Register

 
Hiding table with DIV issue in I.E
eb2000
post Apr 18 2009, 01:51 AM
Post #1


Member
**

Group: Member
Posts: 25
Joined: Feb 2009
Member No: 715,788



So I've built a band myspace layout. And I've hidden the left column with a DIV layer.

It hides everything in Firefox but it Internet explore one of the tables (think it's the URL table) pokes out a bit from the right hand side. I'm not sure what to do as if I make the table a bit more wider to try and hide it then it's going to screw up the layout in mozilla.

the page is http://www.myspace.com/slowdownhoneymusic
have a look in Firefox then I.E and you'll see the problem.

cheers
 
 
Start new topic
Replies (1 - 3)
Mickey
post Apr 18 2009, 06:03 AM
Post #2


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Look for this in your codes:

CODE
NOTE {THIS THE LEFT COLUMN}
.leftcol
{
background-image:url();
background-attachment:fixed;
background-repeat:repeat-y;
background-position:top left;
width: 330px;
padding-left: 10px;
padding-right:10px;
position: absolute;
margin-left: -405px;
margin-top: -10px;
left: 50%;
top: 720px;
background-color: fffdf9;
padding-top: 0px; }

Try the underscore approach. Replace that with this:

CODE
NOTE {THIS THE LEFT COLUMN}
.leftcol
{
background-image:url();
background-attachment:fixed;
background-repeat:repeat-y;
background-position:top left;
width: 330px;
_width: 330px;
padding-left: 10px;
padding-right:10px;
position: absolute;
margin-left: -405px;
margin-top: -10px;
left: 50%;
top: 720px;
background-color: fffdf9;
padding-top: 0px; }

Replace the underlined value with however wide you need it to be for IE.
 
eb2000
post Apr 20 2009, 04:38 AM
Post #3


Member
**

Group: Member
Posts: 25
Joined: Feb 2009
Member No: 715,788



that's perfect!
So that lil piece of code basically says ' if the the browser is Internet Explorer then the table is this width?

Where could I read up more about that piece of code?
 
eb2000
post Apr 20 2009, 07:11 AM
Post #4


Member
**

Group: Member
Posts: 25
Joined: Feb 2009
Member No: 715,788



awesome.
Thanks heaps for that. This thread can be closed now.

cheers thumbsup.gif
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: