PDA

View Full Version : use CSS to set the height of a br??


Old Breadbutt
07-17-2002, 09:03 PM
I want to have "custom" br tags or the equivlent anyway. I think it would be incredibly useful and would simplify a lot of code. I think you could do it in xml but what about CSS and HTML?

I tried just writing a class for br I tried:
br.twenty {font-size : 20px;}
and
br.twenty{margin-top : 20px;}

but neither worked. I guess I could try bottom margin instead of top, but I don't think its even a standard, let alone supported.

I guess my real question is, is there a way to make a tag or class that would work like a br tag except that I could specify the height?

I guess it could be done by making some p class's but that seems messy. ahh who cares. I just think it would be cool.

Strike
07-17-2002, 09:26 PM
I'm pretty sure a line break has no attributable style to it. Instead, you should apply a margin (top or bottom) to whatever elements you are trying to space apart.

unruly
07-19-2002, 01:38 PM
strike's right. Either apply margin attribs to the elements or use a

tag and shape it thusly.

Old Breadbutt
08-02-2002, 03:37 PM
Thats what I usually do, but I've found situations where a custmizable break (or an equivlent), would be really nice. I think that with xml, I ought to be able to make my own tag that would do this.

Anyway, thanks for the reply

unruly
08-02-2002, 05:26 PM
Originally posted by Old Breadbutt
Thats what I usually do, but I've found situations where a custmizable break (or an equivlent), would be really nice. I think that with xml, I ought to be able to make my own tag that would do this.

Anyway, thanks for the reply you could just use the old way of doing things. A 1x1 transparent PNG with width and height adjusted for your needs.

Old Breadbutt
08-02-2002, 06:38 PM
Yeah there are many valid solutions, I've use gif's but it's all good. I guess it just irks me that you can't set the height of a br.

I'll get over it. ;)