|
|
| Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate. |
|
|||||||
| TouchArcade.com - iPhone Game Reviews and News |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
macrumors member
|
How does one create a lesser line break? (<br />)
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? |
|
|
|
| Fromethius |
| View Public Profile |
| Find More Posts by Fromethius |
|
|
#2 |
|
macrumors 65816
|
Personally I prefer just a div tag with a height attribute attached to it's css, using a table is an overkill here.
__________________
This is good, isn't it? |
|
|
|
|
|
#3 |
|
macrumors 601
Join Date: Aug 2005
Location: Dayton, OH
|
Use CSS, add padding, margin, or line height. Avoid using the br tag as well, it's rarely ever "needed."
|
|
|
|
|
|
#4 |
|
macrumors regular
Join Date: Jun 2007
Location: USA
|
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?
__________________
Fall 2007 24" iMac (2.8 ghz - 750gb - 4GB ram) White iPhone 3G 16gb![]() Apple TV 160gb
|
|
|
|
|
|
#5 |
|
macrumors 6502a
Join Date: Apr 2007
Location: California
|
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.
|
|
|
|
|
|
#6 |
|
macrumors Demi-God
Join Date: Sep 2004
Location: On the roadside
|
It also helps the strengthen the separation of layout from content.
|
|
|
|
|
|
#7 |
|
macrumors 601
Join Date: Aug 2005
Location: Dayton, OH
|
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.
|
|
|
|
|
|
#8 | |
|
macrumors 6502a
Join Date: Aug 2004
Location: California
|
Quote:
__________________
C H I C O W E B D E S I G N
C H I C O H O S T I N G Content Management Solutions - M A V I E O Design Studio |
|
|
|
|
|
|
#9 |
|
macrumors 68000
Join Date: Jul 2006
|
hahaha
__________________
TimeTable: The Freelancer's Tool |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|