Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Aug 12, 2008, 03:33 AM   #1
Fromethius
macrumors member
 
Join Date: Jun 2008
Location: Pennsylvania
Send a message via AIM to Fromethius Send a message via MSN to Fromethius
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 is offline   Reply With Quote
Old Aug 12, 2008, 03:37 AM   #2
angelneo
macrumors 65816
 
angelneo's Avatar
 
Join Date: Jun 2004
Location: afk
Send a message via MSN to angelneo Send a message via Skype™ to angelneo
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?
angelneo is offline   Reply With Quote
Old Aug 12, 2008, 07:45 AM   #3
angelwatt
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."
angelwatt is online now   Reply With Quote
Old Aug 12, 2008, 04:36 PM   #4
MegaMan1311
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
MegaMan1311 is offline   Reply With Quote
Old Aug 12, 2008, 04:39 PM   #5
Aranince
macrumors 6502a
 
Join Date: Apr 2007
Location: California
Quote:
Originally Posted by MegaMan1311 View Post
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.
Aranince is offline   Reply With Quote
Old Aug 12, 2008, 04:56 PM   #6
dejo
macrumors Demi-God
 
dejo's Avatar
 
Join Date: Sep 2004
Location: On the roadside
Quote:
Originally Posted by MegaMan1311 View Post
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.
dejo is offline   Reply With Quote
Old Aug 12, 2008, 05:55 PM   #7
angelwatt
macrumors 601
 
Join Date: Aug 2005
Location: Dayton, OH
Quote:
Originally Posted by MegaMan1311 View Post
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.
angelwatt is online now   Reply With Quote
Old Aug 12, 2008, 07:40 PM   #8
ChicoWeb
macrumors 6502a
 
ChicoWeb's Avatar
 
Join Date: Aug 2004
Location: California
Quote:
Originally Posted by angelwatt View Post
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 &nbsp;. That always lines er right up!
__________________
ChicoWeb is offline   Reply With Quote
Old Aug 12, 2008, 07:55 PM   #9
Me1000
macrumors 68000
 
Me1000's Avatar
 
Join Date: Jul 2006
Quote:
Originally Posted by ChicoWeb View Post
I prefer using 47eleven &nbsp;. That always lines er right up!
hahaha
Me1000 is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:12 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC