Solved

No border on table

Posted on 2014-03-31
7
205 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Are there advantages to avoiding the Twitter Bootstrap grid system? 7 44
css, html 6 48
Bootstrap 3 and Angular 2 12 48
FIELDSETs and LEGENDs in email markup 1 9
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
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…

947 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

20 Experts available now in Live!

Get 1:1 Help Now