The Web Squeeze: Overwriting Default Table Style In Ie!? - The Web Squeeze

Jump to content

Forum

Cascading Style Sheets (CSS)

Cascading Style Sheets makes your website go from bland to SWEET! Learn CSS or teach CSS in this forum. Learn CSS Shorthand, how to use floats correctly, and how to style 2 and 3 column websites.
Digg Del.ico.us Slashdot Technorati furl Reddit Facebook Fark Google Magnolia Wink Yahoo Netscape
Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Overwriting Default Table Style In Ie!?

#1 User is offline   Jason Icon

  • Master of the Universe
  • Icon
  • Group: Mentor
  • Posts: 2,533
  • Joined: 15-February 08
  • Gender:Male
  • Location:London, England

Posted 19 February 2008 - 04:50 AM

A CMS I am using is spitting out the menu in a table which looks a bit like this.

<table>
<tr><td>Item 1</td></tr>
<tr><td>Item 2</td></tr>
</table>

Firefox has no trouble floating tr elements. IE7 is stubborning refusing the CSS love.

I have tried this to no avail

#top_inner .moduletable table tr {
	width:100px; float:left;
}
#top_inner .moduletable table tr td {
	width:100px; float:left;
}



Any ideas on what I can do to get this working?
0

#2 User is offline   Rakuli Icon

  • Community Director
  • Icon
  • Group: Community Director
  • Posts: 1,378
  • Joined: 13-February 08
  • Gender:Male
  • Location:Catching the squeezed drips downunder.

Posted 19 February 2008 - 05:39 AM

The whole structure of a table stops what you're doing from working -- you wouldn't really want to do this.

Are you able to alter the code in the CMS so it puts out divs that you can style with CSS?

#3 User is offline   Jason Icon

  • Master of the Universe
  • Icon
  • Group: Mentor
  • Posts: 2,533
  • Joined: 15-February 08
  • Gender:Male
  • Location:London, England

Posted 19 February 2008 - 05:52 AM

I was looking for a CSS solution instead of editing files with php. I will have a look at it.
0

#4 User is offline   karinne Icon

  • Valued Member
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,373
  • Joined: 13-February 08
  • Gender:Female
  • Location:quecque part dans l'Quebec in Canada eh?

Posted 19 February 2008 - 09:21 AM

hmmmm.... I understand this is not your code so I won't comment on how stupid it is to have a menu in a table. I would go in and change that to have the menu in a <ul> then create the css accordingly. ;)
0

#5 User is offline   Jason Icon

  • Master of the Universe
  • Icon
  • Group: Mentor
  • Posts: 2,533
  • Joined: 15-February 08
  • Gender:Male
  • Location:London, England

Posted 19 February 2008 - 09:34 AM

I found a way around it, recoded the menu to display something a bit more usable.
0

#6 User is offline   karinne Icon

  • Valued Member
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,373
  • Joined: 13-February 08
  • Gender:Female
  • Location:quecque part dans l'Quebec in Canada eh?

Posted 19 February 2008 - 09:41 AM

What's CMS is this anyways?
0

#7 User is offline   thesealportalteam Icon

  • Rapid Squeezer
  • PipPipPipPip
  • Group: Members
  • Posts: 347
  • Joined: 14-February 08
  • Gender:Male
  • Location:The US, state of New York.

Posted 19 February 2008 - 01:46 PM

IE 7 has also simplified tables, and Firefox mostly treats tables as div tags.
Got spare time? Visit My Page.
"When you know something should work one way,
but you change it and it no longer works... Who's fault?"


0

#8 User is offline   Jason Icon

  • Master of the Universe
  • Icon
  • Group: Mentor
  • Posts: 2,533
  • Joined: 15-February 08
  • Gender:Male
  • Location:London, England

Posted 19 February 2008 - 03:02 PM

View Postkarinne, on Feb 19 2008, 02:41 PM, said:

What's CMS is this anyways?


Its an unreleased CMS that my friend is developing. I volunteered to build a site with it to see what its short comings were.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked


Page 1 of 1
Trackbacks
Trackback URL Trackback Date Total Hits
No trackbacks were found
Page 1 of 1

Similar Topics
  Topic Started By Stats Last Post Info
New Replies Icon Search Every Table? Jack Icon
  • 10 Replies
  • 1,900 Views
New Replies Icon Fresh-style.nl
my company site
velo Icon
  • 9 Replies
  • 1,764 Views
New Replies Icon Adsense Style Page Embeding. Jason Icon
  • 3 Replies
  • 1,015 Views
Hot Topic (New) Icon Dreamweaver: Why Are My Table Componants Spacing Out?
HTML, CSS, DW CS
Inkers Icon
  • 18 Replies
  • 3,131 Views
New Replies Icon Foreach Problem -- Table Of Contents Script
I have a shaky grasp of variables/arrays/foreach loops
MikeHopley Icon
  • 11 Replies
  • 1,904 Views

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users