Search results
Since the initial value of the border styles is 'none', no borders will be visible unless the border style is set. In other words, you need to set a border style (e.g. solid) for the border to show up. border:thin only sets the width. Also, the color will by default be the same as the text color (which normally doesn't look good).
6 paź 2017 · The border for the heading will extend all 600 pixels across the page, but I want the word "Title" to fit tightly inside. However, I don't know ahead of time how many pixels wide the word is so I can't for example put the "Title" inside a div and set its width explicitly.
20 cze 2020 · Another problem with this solution, it works for big text only, if I use a small text, like 12 or 16px, the border covers the whole text. – stramin Commented Feb 8, 2023 at 18:57
8 wrz 2017 · How can i add a border to a form i tried <border:2px;> but that does not work, I also tried adding a background image to the form but with no success i tried .form-all { background: url(url.jpg) no-repeat top left; } Here is my form
I'm trying to apply a gradient to a border, I thought it was as simple as doing this: border-color: -moz-linear-gradient(top, #555555, #111111); But this does not work.
28 maj 2012 · I have an HTML table with the class "productsTable". I want to give each cell in the table a border. Now I have tried the following in my stylesheet but none of the two works. What am I doing wrong? Thank You. td.productsTable { border: 1px dotted #999999; } .productsTable td { border: 1px dotted #999999; } HTML:
21 sty 2017 · I wrote the following code to form creation,I have add some style to my form.Now I want to add border like this to my form.I tride,But unable to add it.Can anyone help me to do this?
5 maj 2010 · Alternatively, you can add a fallback border, such as border: dashed 4px #000 in this example, non-supporting browsers will receive this border. .bordered { display: inline-block; padding: 20px; /* Optional: A normal dashed border can be set as a fallback, particularly if older browsers need to be supported.
However I needed a CSS solution, not the HTML one. So here it is: table, thead, tbody, tfoot, tr, th, td { padding: 0; border-spacing: 0; } padding is the CSS synonym for HTML cellpadding and border-spacing is respectively for cellspacing. Not quite an obvious thing though.
I'd like to have divs or other html elements styled with CSS that produce this result: (Note the key condition: I not only need the text to be positioned on top of the border, but to hide the border Skip to main content