• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 47
  • Last Modified:

Modify Table Width

I have several tables displayed on the following page:

http://www.sonoma.edu/exed/napa-solano/curriculum

I want the width of the table to be set to 80% and I specified that within the HTML code in the page. However, it is being overridden by the CSS in the base.css file which sets the table width to 100%. How can I get the table to display the way I want?
0
geeta_m9
Asked:
geeta_m9
  • 3
  • 3
1 Solution
 
SSupremeCommented:
Can you add an attribute "style" to the table element as follows: <table width="80" style="width:80% !important;"> ?
0
 
geeta_m9Author Commented:
I did what you recommended and I like the new size, but I lost my table caption, and header.
0
 
SSupremeCommented:
You haven't closed style attribute properly add " at the end after !important;
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
geeta_m9Author Commented:
I modified the code to just  <table style="width:80%"> and now it works!
0
 
geeta_m9Author Commented:
Thank you!
1
 
SSupremeCommented:
You are welcome!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now