Solved

Modify Table Width

Posted on 2016-11-18
6
37 Views
Last Modified: 2016-11-18
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
Comment
Question by:geeta_m9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 16

Accepted Solution

by:
SSupreme earned 500 total points
ID: 41893566
Can you add an attribute "style" to the table element as follows: <table width="80" style="width:80% !important;"> ?
0
 

Author Comment

by:geeta_m9
ID: 41893583
I did what you recommended and I like the new size, but I lost my table caption, and header.
0
 
LVL 16

Expert Comment

by:SSupreme
ID: 41893587
You haven't closed style attribute properly add " at the end after !important;
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 

Author Comment

by:geeta_m9
ID: 41893590
I modified the code to just  <table style="width:80%"> and now it works!
0
 

Author Comment

by:geeta_m9
ID: 41893595
Thank you!
1
 
LVL 16

Expert Comment

by:SSupreme
ID: 41893597
You are welcome!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

691 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