Jump to content

Space above and below fonts - NOT line height


cupax

Recommended Posts

Hello.

Every font has some empty space above and below. You can easily see it if you just click-drag select any text in this page, you are going to get a blue square/frame around the selected text. So the space I'm referring to goes from the top or bottom edge of a font to the edge of the blue frame.

I'm NOT referring to a CSS line height, this is a font property and every font has a different space.

Is there any CSS property that can control this space?

For example: I have a CSS shadow, which is dropped from the edge of that "blue" frame (my top menu shows the selection by underlining the selected item with a shadow). The trouble comes, when you wand to move the shadow closer to the actual characters. 

In the attached image you can see my menu with the word "studio" half selected. The black underline is actually a CSS shadow below that selection frame.

 

font_menu.jpg

Link to comment
Share on other sites

I don't think that can be changed, it is built into the font. There are browser-specific CSS selectors to change the selection box, but I think it only lets you change the colors and not much else. I haven't memorized them so I'd have to look them up.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...