![]() |
|
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. |
| |||||||
| HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| 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. | |||
| | #2 | ||
| 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> > | |||
| Featured Websites | ||||
|
![]() |
| Tags: 401, container, div, html, image, taller, than |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 | ||||
|