Solved

Modify Table Width

Posted on 2016-11-18
6
27 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
  • 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

813 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

14 Experts available now in Live!

Get 1:1 Help Now