Jump to content

pixels in a <br />

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
drotar

drotar

    Newbie

  • Members
  • Pip
  • 3 posts
Does anyone know how many pixels are in a <br /> tag? The CSS that I use needs to imitate a <br /> tag but I can't find any information on the match.

padding-bottom: 4px;

That is how I am trying to replicate it.

#2
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
What are you trying to make? if you want a space, I think you can use a table with fixed height and leave it empty (make   )

#3
Death Slaught

Death Slaught

    Newbie

  • Members
  • PipPip
  • 20 posts
The <br /> tag doesn't have any pixels, it's used for creating a breaking line. Here's an example.

<html>

<body>

Here's some text.

<br />

Here's some text on the next line.

</body>

</html>

The <br /> tags purpose is to push things down to the next line.

Thanks, Death

#4
DevilsCharm

DevilsCharm

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 884 posts
It's just a direction, it's not anything with width or depth or substance of any kind. If you want space between your lines using CSS, I suppose you can control it down to the pixel.