Αποτελέσματα Αναζήτησης
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).
9 Νοε 2010 · Is there any way to limit the length of a border. I have a <div> that has a bottom border, but I want to add a border on the left of the <div> that only stretches half of the way up. Is
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.
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
21 Ιαν 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?
20 Ιουν 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 Σεπ 2017 · With minor modification: just select the right child and, if required, use border-right: .1rem solid #999; and so on to specify exactly which borders you want to draw. – Siegfried Heide Commented Aug 27, 2022 at 8:44
14 Ιουν 2016 · Alternatively, if you cannot or don't want to change your markup, you could simply remove the bottom left and right border and border-radius for your h1 element, and also remove the top left and right border and border-radius for your p element. This will also yield the appearance you're looking for.
7 Μαρ 2012 · When I was adding a border on the hover state, i got the effects that OP is talking about. The border ads pixels to the dimension of the box which made it jumpy. There is two more ways one can deal with this that also work for IE7. 1) Have a border already attached to the element and simply change the color.
6 Οκτ 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.