Log In · Register

 
Allign Text
funride
post Apr 1 2009, 02:58 PM
Post #1


Funride.org
*****

Group: Member
Posts: 326
Joined: Jul 2007
Member No: 542,299



Okay so here's my code.

CODE
<style type="text/css">

body{background-color: #000000;
color: #ffffff;
font-family: arial;
font-size: 12px;}

#content{
position: absolute;
overflow: hidden;
top: 315px;
left: 140px;
width: 301px}

#banner{
position: absolute;
top: 05px;
left: 140px;
width: 301px}

</style>

<div id="banner">
<img src="http://i42.tinypic.com/2czes9g.png">
</div>


<div id="content">
<center><h1>Heading here</h1></center>
<center>Words words words words words. Words words words words words. Words words words words words. Words words words words words. Words words words words words. Words words words words words. Words words words words words. Words words words words words. Words words words words words. </center>
</div>


Can someone help me allign the text to be in between the stars, because I just had to center the header, but the main text wont go in the middle.
 
 
Start new topic
Replies
newkidontheblock
post Apr 1 2009, 03:15 PM
Post #2


Offline.
*****

Group: Official Designer
Posts: 609
Joined: Mar 2007
Member No: 507,591



I hope this helped.
CODE
<style type="text/css">
body {
background-color: #000000;
color: #ffffff;
font-family: arial;
font-size: 12px;
}

#container {
background-image: url('http://i42.tinypic.com/2czes9g.png');
position: relative;
margin: 20px auto;
height: 500px;
width: 355px;
}

#content{
position: absolute;
overflow: hidden;
width: 285px;
top: 315px;
left: 35px;
}
</style>
<div id="container" >
<div id="content" >
<h1> Donec non lacus eu </h1>
<p> odio fringilla interdum. Cras et nibh vitae erat feugiat placerat. In hendrerit ligula non lacus. Curabitur porttitor. Nullam id sem. Donec non velit in magna auctor dapibus. Phasellus quam. Praesent sollicitudin augue ut quam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nunc lorem. Sed vel massa sed est volutpat laoreet. Mauris enim. Nunc tempor. Donec aliquet. </p>
</div>
</div>
 

Posts in this topic
5stardesigns   Allign Text   Apr 1 2009, 02:58 PM
Fawaz   I hope this helped. CODE<style type="text/...   Apr 1 2009, 03:15 PM
mipadi   I played around with it a bit and ended up with th...   Apr 1 2009, 03:18 PM
5stardesigns   Thank you.   Apr 1 2009, 03:25 PM
Mike   Topic closed & moved.   Apr 1 2009, 03:35 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: