[ 3 posts ]

Dave Neill

  • Username: boomster
  • Joined: Sat Jan 09, 2010 9:44 am
  • Posts: 11
  • Offline
  • Profile

Can't get rid of table border

Post Posted: Thu Jul 15, 2010 7:46 am
+0-
I'm using combo 3.1.1 for reset, fonts, grids and base. I'm also using the menu nav module. I'm just trying to create a regular table (sorry, purists) in the page and have it with no border. I've tried identifying it as specifically as I can in my css, as follows:

Code:
.yui3-main .yui3-b table   {
        border:0px none white !important;
}


I've tried applying a class (nb) with border:none;

I've tried applying the style to the table tag:

Code:
<table class="nb" style="border:0px none white !important;" border="0">

At this point I realize I must be circling around the real solution but I'm going nowhere fast. What am I doing wrong?

Thanks.

Nate Koechley

YUI Contributor

  • Username: natekoechley
  • Joined: Wed Oct 15, 2008 9:55 am
  • Posts: 28
  • Location: san francisco
  • YUI Developer
  • Offline
  • Profile
Tags:

Re: Can't get rid of table border

Post Posted: Thu Jul 15, 2010 10:08 am
+0-
I believe Base puts borders on the THs and TDs, not on the TABLE itself. I think it puts it on a simple element selector, so I don't believe you'll need to be more specific than a simple:

style

table th,
table td {border:none;}

In cases like this, tools like Firebug (firefox) and Inspect Element (most other browsers) are your best friend for seeing which rules from where are applied to which nodes.

Hope that helps,
Thanks,
Nate

Dave Neill

  • Username: boomster
  • Joined: Sat Jan 09, 2010 9:44 am
  • Posts: 11
  • Offline
  • Profile

Re: Can't get rid of table border

Post Posted: Sun Jul 18, 2010 5:31 pm
+0-
Many thanks, Nate. That did the trick. Apologies for not persevering to such an obvious solution.
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum