td widths, not working?

It should be: or Note that if your cell contains some content that doesn’t fit into the 200px (like somelongwordwithoutanyspaces), the cell will stretch nevertheless, unless your CSS contains table-layout: fixed for the table. EDIT As kristina childs noted on her answer, you should avoid both the width attribute and using inline CSS (with the … Read more

CSS – why doesn’t percentage height work? [duplicate]

The height of a block element defaults to the height of the block’s content. So, given something like this: #inner will grow to be tall enough to contain the paragraph and #outer will grow to be tall enough to contain #inner. When you specify the height or width as a percentage, that’s a percentage with … Read more

How to set up fixed width for ?

For Bootstrap 4.0: In Bootstrap 4.0.0 you cannot use the col-* classes reliably (works in Firefox, but not in Chrome). You need to use OhadR’s answer: For Bootstrap 3.0: With twitter bootstrap 3 use: class=”col-md-*” where * is a number of columns of width. For Bootstrap 2.0: With twitter bootstrap 2 use: class=”span*” where * is a number of columns of width. … Read more

How to set up fixed width for ?

For Bootstrap 4.0: In Bootstrap 4.0.0 you cannot use the col-* classes reliably (works in Firefox, but not in Chrome). You need to use OhadR’s answer: For Bootstrap 3.0: With twitter bootstrap 3 use: class=”col-md-*” where * is a number of columns of width. For Bootstrap 2.0: With twitter bootstrap 2 use: class=”span*” where * is a number of columns of width. … Read more

SVG center horizontal and vertical line

For an SVG’s contents to scale with its size, it needs to have a viewBox.  Run code snippetExpand snippet In this example, everything scales, including the line width. If that’s not what you want, then you can either use @SirExotic’s approach (using percentage coordinates), or you could set the lines to not scale by using vector-effect: non-scaling-stroke. … Read more