Solved

No border on table

Posted on 2014-03-31
7
204 Views
Last Modified: 2014-03-31
Ive been trying to switch off the border of a cell of a table, Ive set the cell I dont want a border to have the class of .scollSpacer and coded it as:-
table .scollSpacer { width:15px; border:none; }

Open in new window


However the border is still showing on the cell (top right):-
http://jsfiddle.net/5DfGx/

Any idea how I can switch off the border of the class .scrollSpacer?

Thank you
0
Comment
Question by:tonelm54
  • 3
  • 2
  • 2
7 Comments
 

Author Comment

by:tonelm54
ID: 39967850
Im looking to have the border on all the cells apart from the cell with .scollSpacer
0
 

Author Comment

by:tonelm54
ID: 39967851
Im looking to have the border on all the cells apart from the cell with .scollSpacer
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39967847
You are setting the border with css

table,th, td { border: 1px solid black; }

Open in new window


Just remove that and no border
http://jsfiddle.net/5DfGx/2/
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 10

Expert Comment

by:jtwcs
ID: 39967861
The border you are seeing is from the table border.  

Remove table from this declaration and just the cells and header will have a border.

table,th, td { border: 1px solid black; }

Open in new window

0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39967868
http://jsfiddle.net/5DfGx/6/

  #openJobs .tableBody { height:200px; }
  #openJobs th:nth-child(1), td:nth-child(1) { width:80px; }
  #openJobs th:nth-child(2), td:nth-child(2) { width:110px; }
  #openJobs th:nth-child(3), td:nth-child(3) { width:100px; }
  #openJobs th:nth-child(4), td:nth-child(4) { width:300px; }
  #openJobs th { text-align:left; }
  
  table { border-collapse:collapse; }
  table,th, td { border: 1px solid black; }
  table .scollSpacer { width:15px; border:none; }
  
  .tableBody tr:nth-child(odd) { background-color:#eee; }
  .tableBody tr:nth-child(even) { background-color:#fff; }

/* added */
table{border:none;}
th.scollSpacer{border:none;}

Open in new window

0
 
LVL 10

Expert Comment

by:jtwcs
ID: 39967889
/* added */
table{border:none;}
th.scollSpacer{border:none;}

Open in new window


The above extra declarations are not necessary here.  

You just need to update
table,th, td { border: 1px solid black; }

Open in new window


to this
th, td { border: 1px solid black; }

Open in new window

0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39967904
jwtcs, maybe that works in the sample, but we don't know what the actual plans are and the request is, "have the border on all the cells apart from the cell with .scollSpacer"
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now