The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Align Text With Image
Judoman
post Apr 15 2016, 10:59 AM
Post #1





Group: Members
Posts: 8
Joined: 12-April 16
Member No.: 24,153



I have text in a text frame. When I insert a small photo the text drops to the bottom edge of the photo. Is there a way to align the text and/or photo so text will be along the side of the photo starting at the top edge of the photo?

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 15 2016, 11:37 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



Is the image in the framed document, the one with the text, or is the framing document? Either way we need to see what you've got. Can you link to the framing page?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Judoman
post Apr 15 2016, 02:56 PM
Post #3





Group: Members
Posts: 8
Joined: 12-April 16
Member No.: 24,153



QUOTE(Judoman @ Apr 15 2016, 10:59 AM) *

I have text in a text frame. When I insert a small photo the text drops to the bottom edge of the photo. Is there a way to align the text and/or photo so text will be along the side of the photo starting at the top edge of the photo?


Can't link as the page is not on the web yet. I'm looking for a way to do this like it's done in WORD. You select a picture then get options to align text various ways around or through the photo.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 15 2016, 06:25 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



OK, attach the files to your post then.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Apr 15 2016, 06:28 PM
Post #5


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



Sounds like you want to float the image with CSS. See for example: https://css-tricks.com/all-about-floats/

Frames in HTML are something different (for loading web pages inside web pages).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 15 2016, 08:24 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



Oh. Maybe frame doesn't mean IFRAME as I assumed it did. ninja.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Judoman
post Apr 19 2016, 02:44 PM
Post #7





Group: Members
Posts: 8
Joined: 12-April 16
Member No.: 24,153



QUOTE(Christian J @ Apr 15 2016, 06:28 PM) *

Sounds like you want to float the image with CSS. See for example: https://css-tricks.com/all-about-floats/

Frames in HTML are something different (for loading web pages inside web pages).



This looks like exactly what I'm trying to do. But how do I do it?

Here's the code I see now for the text box:
div#e2 {
position: absolute;
left: 65.25pt;
top: 209.25pt;
width: 879.00pt;
height: 354.75pt;

How do I change it to float using: #sidebar {
float: right;
}
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Apr 19 2016, 03:23 PM
Post #8


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



QUOTE(Judoman @ Apr 19 2016, 09:44 PM) *

Here's the code I see now for the text box:
div#e2 {
position: absolute;
left: 65.25pt;
top: 209.25pt;
width: 879.00pt;
height: 354.75pt;

Remove "position: absolute", you can't use that and float on the same element (BTW, the pt unit is better suited for printted media, use px for screens instead).

QUOTE
How do I change it to float using: #sidebar {
float: right;
}

What does the HTML of the text box and photo look like?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 09:47 PM