Asterisk width in css
-
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! :-)
-
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! :-)
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...
-
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! :-)
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 -
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...
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; }
-
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...
Did you try and use width:auto?? (I didn't test this) Dirk Watkins