Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 43
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

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