Welcome visitor
* Login
* Register
It is currently July 20th, 2019, 11:33 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  Use images as frames-containers and keep text inside the img
PostPosted: November 27th, 2009, 4:49 pm 

Posts: 12
Hi guys, I'm using images to divide the area of my page. Then with position-fixed divs I'm adding the text inside the images. My question is because if the text is bigger than the picture it goes out and looks very ugly. Can I keep the text inside the image?


Top
 Profile  
 
  Re: Use images as frames-containers and keep text inside the img
PostPosted: November 27th, 2009, 5:19 pm 
User avatar

Posts: 70
Set the dimensions of the div the same than the image and overflow: scroll ;)
<div style="overflow: scroll"></div>


Top
 Profile  
 
  Re: Use images as frames-containers and keep text inside the img
PostPosted: November 27th, 2009, 7:05 pm 
User avatar

Posts: 61
Why dont you just create a div the size of your image, put the text inside and the image as the background of the div?
<div style="overflow: scroll; background: url('image.jpg')"></div>


Top
 Profile  
 
  Re: Use images as frames-containers and keep text inside the img
PostPosted: November 27th, 2009, 7:17 pm 

Posts: 12
:D Thanks, I knew this had an easy way 'round.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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