Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Fromethius

macrumors member
Original poster
Jun 26, 2008
45
0
Pennsylvania
I know of the br tag, but for one part on my website, I would like a line break that would around half of that of the traditional <br /> line break.

I guess I could make a table with one data cell, or somehow change the em of the br tag in css, but I am not sure if that is the most elegant of solutions.

Any ideas?
 
Personally I prefer just a div tag with a height attribute attached to it's css, using a table is an overkill here.
 
Use CSS, add padding, margin, or line height. Avoid using the br tag as well, it's rarely ever "needed."
 
Could you explain to me why you shouldn't use it? I use it often myself, though recently, I have been replacing it with margin if I can. So is there any reason why you shouldn't use it other than css being able to replace it sometimes?
 
Could you explain to me why you shouldn't use it? I use it often myself, though recently, I have been replacing it with margin if I can. So is there any reason why you shouldn't use it other than css being able to replace it sometimes?

I don't think there is a reason not to use it except that css makes it easier for you to change the look later.
 
Could you explain to me why you shouldn't use it? I use it often myself, though recently, I have been replacing it with margin if I can. So is there any reason why you shouldn't use it other than css being able to replace it sometimes?
It also helps the strengthen the separation of layout from content.
 
Could you explain to me why you shouldn't use it? I use it often myself, though recently, I have been replacing it with margin if I can. So is there any reason why you shouldn't use it other than css being able to replace it sometimes?

Ditto to what Aranince and dejo said. It's all about using semantic HTML and having the separation of content (HTML), presentation (CSS), and behavior (JavaScript). This development scheme makes it easier to do future updates, organizes your efforts, and can make it easier for a team to work on a site. The br tag does have its place, but using it to increase some spacing is very much not one of them.
 
Ditto to what Aranince and dejo said. It's all about using semantic HTML and having the separation of content (HTML), presentation (CSS), and behavior (JavaScript). This development scheme makes it easier to do future updates, organizes your efforts, and can make it easier for a team to work on a site. The br tag does have its place, but using it to increase some spacing is very much not one of them.

I prefer using 47eleven  . That always lines er right up! ;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.