1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

HTML question re: table borders, legend border, horizontal lines

Discussion in 'Web Development' started by greenbelt, Apr 22, 2010.

  1. greenbelt

    greenbelt New Member

    Playing around with HTML stuff. Practicing and experimenting.

    I can increase the thickness of the table border but haven't found a way to change that grey color. (I replaced the brackets just in case it messes up this post.)

    <table border="5" width="100%" cellpadding="7"> This works.

    <table border="5 style="color:red" width="100%" cellpadding="7"> Doesn't work. Am I getting close?

    Also I've been using the fieldset element with a legend attribute to enclose and label my examples. The 'box' or 'border' is a thin blue line. Is this changeable?

    Speaking of changing things ... how about the horizontal line element? Anyway to change the thickness or color?

    Thanks greenbelt
     
  2. navyfalcon

    navyfalcon Well-Known Member Verified Member

    This may help
    HTML Tutorial
    w3schools tutorial on HTML
    -
    falcon
     
  3. greenbelt

    greenbelt New Member

    :) OK I'll take another look. Thanks.
     
  4. navyfalcon

    navyfalcon Well-Known Member Verified Member

  5. greenbelt

    greenbelt New Member

    I installed the JustStyle CSS Editor. It's great! As I use it more I'm sure I'll become more familiar with the various properties and values. Gets confusing to keep looking things up all the time. I'm also trying out the Template Generators.

    Thanks, greenbelt
     
  6. enigma1

    enigma1 New Member

    You need to specify the style as a property in the HTML for the table, for example:

    Code:
    <table style="border: 5px solid #F00" width="100%" cellpadding="7">
    <tr>
      <td>123</td>
    </tr>
    </table>
    
    I usually setup the table border to be 0 in the stylesheet then in the HTML set it to whatever is necessary for each table case.

    Generators may look great at first glance but they don't really help. Each has its own construct methods and so it takes more time to understand and optimize the CSS than do it yourself and learn from it.
     
  7. greenbelt

    greenbelt New Member

    yea that's what I figured about the various programs. Don't have much patience to learn how to use them fully. I'd rather take that time to get better at HTML and CSS. I'm keeping some of them to play with but the more I learn about XHTML and CSS the easier it is to code 'by hand'. I'm kinda a control freak anyways. I rather do things the hard way and have full control on every little detail. Not like I have much else to do with my time so...