Questions tagged [outline]

outline is a property in CSS, that is used to draw a line around the element. Question that has the problem related to outline property of CSS.

An outline is a line that is drawn around elements (outside the borders).

The outline is not a part of the element's dimensions, therefore the element's width and height properties do not contain the width of the outline.

This link contains the example of outline .

The tutorial is here.

473 questions
3
votes
1 answer

Outline applied to an anchor containing an image isn't the right height in Chrome

For a site I'm working on, I'd like to have a dotted outline appear around links when they are focused/hovered/active. I'd like this to happen for text and image links. The issue I have is that whilst my code works great in Firefox and IE, in Chrome…
SamStephens
  • 5,721
  • 6
  • 36
  • 44
3
votes
2 answers

Possible to create a double outline for number with css?

Is it possible to create a double outline for number how you see in below picture (I mean the green and white outline) Any idea?
Ana DEV
  • 1,018
  • 2
  • 17
  • 39
3
votes
1 answer

how to interpret a freetype glyph outline when the first point on the contour is off curve

I'm actually working on a renderer that converts freetype glyphs into polylines to control a laser marking system. The problem I have is that I don't know how to handle correctly a contour beginning with an off curve point (99.9% begin with on curve…
chrmue
  • 1,552
  • 2
  • 18
  • 35
3
votes
2 answers

css-prop outline on DIV element not showing or incorrect

i came up with this while i was looking for another fault.. Strange things are happening.. .blok { outline: 1px solid red; } .blok > label { padding-top: 7px; margin-bottom: 0; text-align: right; width: 41.66666667%; float:…
user4431269
3
votes
3 answers

Round the corners of outline property CSS

I have this element with this style added: .checkout-step.current .number { background-color: #d26d51; outline: 1px solid #d26d51; outline-offset: 4px; } But I not want square corners in the outline, I want round the corners, like this…
Funny Frontend
  • 3,807
  • 11
  • 37
  • 56
3
votes
0 answers

Xcode Swift Add Black Outline To SKLabelNode

I am trying to add a black border around my text like it is done in flappy bird, but I can not figure out how to do it within swift. I am able to fill in the label, but it does not allow me to do anything with adding a border or a outline around…
Skiddyflyer
  • 213
  • 1
  • 2
  • 8
3
votes
1 answer

Access tree object in netbeans outline

I'm using Outline from netbeans to display some structured data. How can I map selected row to an object in tree?
p4553d
  • 818
  • 1
  • 7
  • 17
3
votes
2 answers

Border outline on first letter

How to outline the bottom border of a first letter? In the example below, p:first-letter, all I get is the red underline. Can't even score the first-letter outline (Outline = Block Elements)! Is there some other way to code an outline for the bottom…
mark stewart
  • 421
  • 5
  • 11
3
votes
0 answers

Java Using OpenGL Stencil to create Outline

I'm trying to render an outline of an object over the top of it but I'm having some difficulties. I'm not too good with OpenGL so most of it was from following tutorials. The desired effect is supposed to be something like this: But this is the…
user3166950
  • 315
  • 3
  • 6
  • 15
3
votes
1 answer

What kind of trick do Twitter use about css outline?

When I click the buttons on a timeline, my browser(chrome) doesn't focus the button. The focus was stay on the element where it was. How do they do that? These are what I found. They don't use blur() function on click. If they call the method, the…
Sanghyun Lee
  • 21,644
  • 19
  • 100
  • 126
3
votes
3 answers

Is it possible to display nested sections in a collapsed fold with vim?

When a fold is collapsed in vim, all of the nested headings are hidden away so that you can't see what's inside. I'm curious if anyone knows if it's possible or has a solution for foldtext function (or through another method) that can display the…
nfarrar
  • 2,291
  • 4
  • 25
  • 33
3
votes
2 answers

Graphics2D stroke spikes on Java

I'm having a problem with graphics 2d stroke, it seems no one has this problem since I have searched for something alike and no results. Here is the image. As you can see, there are spikes on my stroke, I don't want those. Here is my code. The…
xchan
  • 37
  • 5
3
votes
1 answer

excel group with hidden rows

I have an Excel sheet where several rows are grouped together using "Group and outline". By default the group is to be expanded but I have one row that I have hidden using vba in Workbook_Open. After I click the [-] to collapse the group and then…
sepang
  • 4,640
  • 4
  • 23
  • 23
3
votes
1 answer

draw outline for some connected lines

I have some lines that are connected at various points. I want to draw the outline of these lines and I also want to deal with the extra lines at the connection points. I have seen two similar questions in this website: Here and here I have handled…
Vahid
  • 5,144
  • 13
  • 70
  • 146
3
votes
2 answers

Remove highlight and add selection border in WinForms ListView C#

After searching a bit, I haven't come across my specific question. I would like to change the default behavior of ListView selection on a WinForm in C# I need to do this because I am using custom colors in cells to represent Meta-Information…
Nathan McCoy
  • 3,092
  • 1
  • 24
  • 46