Welcome visitor
* Login
* Register
It is currently July 21st, 2019, 6:30 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Justify 4 words accross all the screen
PostPosted: November 3rd, 2009, 6:07 pm 

Posts: 16
Hi, Im trying to learn some website design basics. I have this line that I want to use as the header on my site
<style type="text/css">
  .header{
    margin: auto;
    width: 80%;
    background-color: #4e2f88;
    color:#fff;
    text-align: justify;
  }
</style>

<div class="header">this is the header</div>

Do you know if can make "this is the header" to expand to fill the 80% of the screen and still being as tall as a single line? just make it wider.

tia


Top
 Profile  
 
  Re: Justify 4 words accross all the screen
PostPosted: November 4th, 2009, 2:10 am 
User avatar

Posts: 61
Maybe using an image. I attached one :P
<style type="text/css">
  .header{
    margin: auto;
    width: 80%;
    height: 20px;
    background-color: #4e2f88;
    color:#fff;
    text-align: justify;
  }
  .headerimg{
    width: 100%;
    height: 20px;
  }
</style>
<div class="header"><img src="header.JPG" class="headerimg" /></div>


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron