Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 870739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:31:36+00:00 2026-05-15T10:31:36+00:00

Here is how I style tables now: #content table { width: 100%; margin-top: 1em;

  • 0

Here is how I style tables now:

#content table {
    width: 100%;
    margin-top: 1em;
    border-collapse: collapse;
    border: 1px solid #222; 
}
#content table td {
    border: 1px solid #888;
    padding: .3em;
}

What I am trying to achieve is to have tables with black outside border (#222). However, I want the inside border to be lighter color (let’s say #888). How can I achieve this?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:31:37+00:00Added an answer on May 15, 2026 at 10:31 am

    Why not have a div container for the table and set it’s border as required. Then simply set the table border independently?

    Markup:

    <div class='outerDiv'>
    <table>
    <tr>
    <td></td>
    <td></td>
    </tr>
    </table>
    </div>
    

    Css:

    .outerDiv{ border:solid 2px #222; }
    .outerDiv table { border:solid 2px #888; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my code: <%= Html.TextArea(txtMyTextArea, new { @style = width: 100%; height:100%, @resize=horizontal
i want a table to render with minimum width according to its content, but
Here's what I want to do: Style a table whose cells' background color vary
Here is the code: tinyMCE.init({ mode: textareas, theme: advanced, plugins: autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template, // Theme options
Here is jquery code which hides my table cells with the ID of .style2:
my style is here #mybox{ display:none; } my web is here <div id='mybox'> ...
Here's my button style: <style name=StandardButton parent=@android:style/Widget.Button> <item name=android:background>@drawable/button_mib_standard</item> <item name=android:textColor>@drawable/button_text</item> <item name=android:padding>16dip</item> <item
Here is my code: <style> #defCalTree { overflow: scroll; overflow-x: hidden; } </style> and
here is my code.. <script type=text/javascript> function clicker(){ var thediv=document.getElementById('downloadoverlay'); if(thediv.style.display == none){ thediv.style.display
Here's a resource of mine: <?xml version=1.0 encoding=utf-8?> <resources> <style name=MyTheme> <item name=editTextStyle>@android:style/Widget.EditText</item> </style>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.