View Full Version : Stuppid question, but i need an awnser
dr_em2001
08-02-2002, 06:25 AM
hey, i have never ran into this problem before, but i am trying to put poetry on my site, and i want it centered, so it looks like...<p align=center><b>I saw us always together<b></p> and then i need to go and do the next line of the poem, do i have to do it like this:<p align=center><b>I saw us always together<b></p>
<p align=center><b>But that can not be<b></p>
<p align=center><b>Now I feel Something<b></p> and so on over and over? or can i just hit enter and it will go to the next line? or maybe <br> after each line? help would be appreciated
Gordo
08-02-2002, 06:36 AM
<p align=center>
<b>I saw us always together<br>
But that can not be<br>
Now I feel Something</b>
</p>
dr_em2001
08-02-2002, 07:00 AM
thanx
edgework
08-02-2002, 04:07 PM
This will also work:
<html>
<head>
<title>Poem class</title>
<style type="text/css">
.poem {
font-weight: bold;
text-align:center;
}
</style>
</head>
<body>
<p class="poem">
I saw us always together<br>
But that can not be<br>
Now I feel Something</p>
</body>
</html>
This way you can change your poem styles without revising each line of text. Helpful if there are more than one poem affected.
Mhtml
08-04-2002, 12:34 PM
as with these methods:
<center>In the fall the leaves
turn into colors at night
they are beautiful</center>
as well as
<div align="center">The tree is pretty
the birds and leaves are pretty
and the green grass grows</div>
ronaldb66
08-05-2002, 11:50 AM
True, but the CSS solution surely is the preffered one, since the other methods are depricated in HTML4.01 / XHTML 1.0
Mhtml
08-05-2002, 12:09 PM
but still highly common!
edgework
08-05-2002, 02:12 PM
Originally posted by Mhtml
but still highly common!
And they will be for years I'll bet. I'd hate to have to sell the first browser that decides to no longer support legacy HTML code.
For that reason, the standards issue is sort of a red herring. It's really a question of convenience and ease; much like prepping files in traditional pre-press, the easist, quickest way to set up a file can prove to be a nightmare the minute the client says "Could we make a few changes...?"
I spend lots more effort setting up a CSS layout, and getting my contexts in line for class and id assignments than I would simply slapping some tags around in a table. But once I do, it's so much fun to change my mind. And so easy.
brothercake
08-05-2002, 02:57 PM
Originally posted by edgework
I'd hate to have to sell the first browser that decides to no longer support legacy HTML code.
Like Mozilla you mean :rolleyes:
But anyway - this debate is omnipresent - coding to strict compliance means saying goodbye to legacy browsers; but coding to legacy browsers means convoluted and mutliply-proprietary code continues to propagate.
Personally, I don't really care - the medium is not the message, it's just the medium.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.