Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Asterisk width in css

Asterisk width in css

Scheduled Pinned Locked Moved Web Development
cssquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Clickok
    wrote on last edited by
    #1

    If you have 3 columns in one table, and place in the first TD 100px, in tha last 200px and in the middle TD one asterisk "*", the middle column enlarge to fit the table width. I can use this asterisk (*) in css? The asterisk is reserved in css, then what we can use? Regards Jesus is Love! Tell to someone! :-)

    P G 2 Replies Last reply
    0
    • C Clickok

      If you have 3 columns in one table, and place in the first TD 100px, in tha last 200px and in the middle TD one asterisk "*", the middle column enlarge to fit the table width. I can use this asterisk (*) in css? The asterisk is reserved in css, then what we can use? Regards Jesus is Love! Tell to someone! :-)

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      I may be wrong here, but do you need this asterisk at all. If you have two columns of fixed width and a set width on the table, then surely the middle column will expand to the table width anyway...

      G D 2 Replies Last reply
      0
      • C Clickok

        If you have 3 columns in one table, and place in the first TD 100px, in tha last 200px and in the middle TD one asterisk "*", the middle column enlarge to fit the table width. I can use this asterisk (*) in css? The asterisk is reserved in css, then what we can use? Regards Jesus is Love! Tell to someone! :-)

        G Offline
        G Offline
        Graham Nimbley
        wrote on last edited by
        #3

        You are right in saying that * is reserved, but not for autosizing. It used to select all elements in the current DOM. E.g. div * { } will apply styling to all descendant (i.e. children of children, etc) elements of div elements Graham

        1 Reply Last reply
        0
        • P Paddy Boyd

          I may be wrong here, but do you need this asterisk at all. If you have two columns of fixed width and a set width on the table, then surely the middle column will expand to the table width anyway...

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          That depends on the content of the table cells, and in what browser the page is shown. The size that you specify for a cell is the minimum size, if the browser feels that the cell should be bigger, it will be. Normally the size of the cells are determined by the size of their content. There is nothing specific in the html standard on how the browser should calculate the sizes, so different browsers will come to different conclusions on how large the cells should be. --- b { font-weight: normal; }

          1 Reply Last reply
          0
          • P Paddy Boyd

            I may be wrong here, but do you need this asterisk at all. If you have two columns of fixed width and a set width on the table, then surely the middle column will expand to the table width anyway...

            D Offline
            D Offline
            dwatkins dirq net
            wrote on last edited by
            #5

            Did you try and use width:auto?? (I didn't test this) Dirk Watkins

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups