Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > HTML
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 1:56 PM   #1
Vince C.
 
Vince C.'s Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Can I make the container DIV of an image not taller than the image (HTML 4.01)?

Hi,

Might be a stupid question but bear with me. I feel newbie since I plunged
into HTML 4.01... I'd like a DIV to contain an image to the right side. The
image should set the DIV maximum height. If the contained text inside the
div overflows, the DIV should scroll vertically. Can I achieve this?

Thanks,
Vince C.


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 1:59 PM   #2
Vince C.
 
Vince C.'s Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Can I make the container DIV of an image not taller than the image (HTML 4.01)?

Thanks a lot, Ernest.

I needed such simple things for what I write tends to be much too
complicated... I have to get used to HTML 4.01 :-)

Thanks again.
Vince C.

------

"Ernest Cline" <ernestcline@mindspring.communism> a écrit dans le message de
news:bdpgq5$h27$1@slb6.atl.mindspring.net...
>
> "Vince C." <noname@hotmail.com> wrote in message
> news:3f001368$0$288$ba620e4c@reader0.news.skynet.b e...
> > Hi,
> >
> > Might be a stupid question but bear with me. I feel newbie since I

plunged
> > into HTML 4.01... I'd like a DIV to contain an image to the right side.

> The
> > image should set the DIV maximum height. If the contained text inside

the
> > div overflows, the DIV should scroll vertically. Can I achieve this?

>
> Yes and no. It will require using CSS as well and it will be a lot easier
> if you know the dimensions of your picture. If you don't know the size,
> you'll have to make some compromises about your design and settle for
> something similar to what you want.
>
> In the following examples, I'll assume that the picture is 100px wide and
> 200px high. I'll also be using inline CSS via the style attribute and

that
> unless otherwise specified, that the margin, border and padding of all
> elements have been set to 0px.
>
> Scenario 1: You want the picture at upper right. and don't care where the
> text goes.
>
> <DIV style="height:200px;overflow:auto">
> <IMG style="float:right">
> Your text here.
> </DIV>
>
> If you want the scrollbar to always be there you'd use overflow:scroll
> instead.
>
> Scenario 2: You want the picture at the upper right, but you don't want

the
> text under the picture.
>
> <DIV style="height:200px;overflow:auto">
> <IMG style="float:right">
> <DIV style="margin-right:100px">
> Your text here.
> </DIV>
> </DIV>
>
> Scenario 3: You want the picture at right and for it to stay visible and

in
> place as the text scrolls.
>
> <DIV>
> <IMG style="float:right">
> <DIV style="height:200px;overflow:auto;margin-right:100px">
> Your text here.
> </DIV>
> </DIV>
>



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , , , , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I curve or distort a flat label image to fit a round bottle image? Steen Alexandersen Graphics in general 1 11-15-2008 2:05 AM
MRS Image Format darkstar949 Software Programming 0 06-12-2007 11:51 PM
Cant make a simple text image Joey2509 Graphics in general 5 06-11-2007 11:50 PM
mirroring an image bdchmura Graphics in general 0 06-11-2007 9:43 PM


Featured Websites




All times are GMT +1. The time now is 6:14 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98