need help making a line break

darrenb

New Member
<p>337 Queen Street West<br />
Toronto, ON, M5V 2A4</p>

If I don't put the break tag then "Toronto" goes up beside "west" and I don't want to use br tags. I tried putting a span around "Toronto" with "display:block" but then it shows like this:

337 Queen Street West
Toronto,
ON, M5V 2A4

how can I do a line break without br tags?
 

LouTheDesigner

New Member
Hello,

Firstly, why not use a <br /> tag. I'm just curious on that one.

To solve your issue, just put a span around "Toronto, ON, M5V 2A4" and use display: block;

(Don't just put the span tag around Toronto, but rather the whole line)

-Lou
 

PixelPusher

Super Moderator
Staff member
Hello,

Firstly, why not use a <br /> tag. I'm just curious on that one.

To solve your issue, just put a span around "Toronto, ON, M5V 2A4" and use display: block;

(Don't just put the span tag around Toronto, but rather the whole line)

-Lou

Yep do what Lou said...but im puzzled as to way you dont want to use a line break. That is their intended use.
 

CaldwellYSR

Member
Well a line break would make the most sense... but couldn't you also just make it two <p> tags?

<p>337 Queen Street West</p>
<p>Toronto, ON, M5V 2A4</p>
 

Phreaddee

Super Moderator
Staff member
hey guys i'm in a similar boat...I dont want to use line breaks either.
and I dont want to use <p> <h1>-<h6> or even <span> or <div>
but I want a shithot website that does all the things its meant to, just not using any semantic markup at all. in fact I want a shithot website with no markup at all. can I just get rid of the <html> as well? actually what I really want to do is have
Code:
<body>
awesome pagecontent
</body>

and the website just "reads" whats on your mind and creates it...i'll pay someone $50!

oops better repost this in the offers/request section too.

while I'm at it i'll make a totally unrelated comment about how search engines are god. and how you must go to utah and use my services.(even though I'll be based in NY) which you will because i'll litter the forums with my dribble....oh wait sorry i'm getting confused. isn't this idiots anonymous? oh its not its a webdesign forum...oh. sorry. looks like i'll just have to use the designated markup for a linebreak after all...what was that again. oh thats right <br />
 
Last edited:

krymson

Member
rofl Phreaddee.... talk about complicating the simplest of all things in the world, put an <hr> tag in there see how that works, it might just do the trick... oh wait now there's a big line across my screen... is that a line of dead pixels? that wasnt there before.... retarded just effing use the <br /> tag and get the hell over it... newbs who think web design is drag and drop... NEWS FLASH THERES ACTUALLY WORK YOU HAVE TO DO!!! WORD WONT DO IT FOR YOU THIS TIME
 

Phreaddee

Super Moderator
Staff member
you are right, the <hr /> tag IS totally underutilised.

just made a 2col page with <hr>'s
Code:
<!DOCTYPE html >
<html>
<head>
<meta charset="UTF-8" />
<title>I Love Horizontal Rules!!!</title>
<style>
#wrapper {
	width:960px;
	margin:0 auto;
}

.header {
	width:960px;
	height:100px;
	background-color:#000;
	margin:0;
}

.leftcol {
	width:220px;
	height:500px;
	background-color:#F00;
	float:left;
	margin:0;
}

.rightcol {
	width:740px;
	height:500px;
	background-color:#666;
	float:left;
	margin:0;
}

.footer {
	width:960px;
	height:60px;
	background-color:#000;
	margin:0;
}

.clear {
	clear:both;
	margin:0;
}

</style>
</head>
<body>
<div id="wrapper">
    <hr class="header" />
    <hr class="leftcol" />
    <hr class="rightcol" />
    <hr class="clear"/>
    <hr class="footer" />
</div>
</body>
</html>

the only problem is I cannot figure out how to add text into them...
wanted to try it with the linebreak ultimately, but alas it appears that linebreaks cannot have positional styles applied to them. they only can break a line....damn!...damn useless line breaks what are they good for???
 
Top