Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    the windy city
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    specifying table width with stylesheets

    how do i do that?
    when i gave my table an id or class, and thenin my stylesheet said
    #id {width: whatever} it did nothing
    Goals are dreams with deadlines
    -------------------------------------
    Nimlok Trade Show Display Booth and Exhibit
    http://www.orbusinc.com

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Maybe it's this:
    table {
    width:300;
    }

    Forgot to specify units? 300px

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    the windy city
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    umm, what about %?
    i tried width: 50% or so and it did not work
    neither did the pixels
    Goals are dreams with deadlines
    -------------------------------------
    Nimlok Trade Show Display Booth and Exhibit
    http://www.orbusinc.com

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    And what if you put the style inline?
    Like <table style="width:50%;">?

  • #5
    New Coder
    Join Date
    Jun 2002
    Location
    the windy city
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    MCookie,

    you're so much help!

    well, it ended up being that teh inline stylesheet worked and i could not figure out why not external. well, the site is all in miva, and miva incerts its own formatting tags without your concent. i thought i coded to "counterat" everything, but had missed some tags. once i got that worked out my external stylesheet started working.

    Thanks!
    Goals are dreams with deadlines
    -------------------------------------
    Nimlok Trade Show Display Booth and Exhibit
    http://www.orbusinc.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •