...

View Full Version : Simple question that I dont know the answer to.



kyllle
03-04-2009, 11:34 AM
I want to use css to replace the current html <br>'s but Im not sure how I can achieve this?

20:00<br />
DON GIOVANNI (1787)<br />
Estates Theatre<br />
<br />
Wolfgang Amadeus Mozart (1756-1791)<br />
Director: V. Kašlík, J. Nekvasil<br />
Stage design: J. Svoboda

I know this must be very simple to achieve but Iv struck a bit of a brain block, thanks for your help!!

Kyle

abduraooft
03-04-2009, 11:38 AM
like

div.mydiv br{
display:none;
}

<div class="mydiv">
20:00<br />
DON GIOVANNI (1787)<br />
Estates Theatre<br />
<br />
Wolfgang Amadeus Mozart (1756-1791)<br />
Director: V. Kašlík, J. Nekvasil<br />
Stage design: J. Svoboda

</div>?

Major Payne
03-04-2009, 11:40 AM
Just write it using the "pre" tags:
<pre>
20:00
DON GIOVANNI (1787)
Estates Theatre

Wolfgang Amadeus Mozart (1756-1791)
Director: V. Kašlík, J. Nekvasil
Stage design: J. Svoboda
</pre>Then style the "pre" tags as you want.

kyllle
03-04-2009, 11:48 AM
cheers the pre works a treat!!!!

Major Payne
03-04-2009, 11:16 PM
:thumbsup: Glad it worked the way you wanted.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum