The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How can i stop text writing through image?
gsd12345
post Mar 13 2007, 05:32 AM
Post #1


Member
***

Group: Members
Posts: 30
Joined: 26-February 07
Member No.: 2,031



I have used CSS to do the layout of my website however I find that the text writes across over an image. how do I make it so that the text wraps round the image rather than writing over it. I imagine I could stop this from happening by adjusting where the paragrph is to start and end in relation to the screen and picture and place an image in there, however, I imagine this could take a while. Is there a simple solution that gets me the result I want.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
gsd12345
post Mar 13 2007, 05:45 AM
Post #2


Member
***

Group: Members
Posts: 30
Joined: 26-February 07
Member No.: 2,031



When my webpages open in a smaller window the different elements (ie the image, the text, the menu,) are all grouped together and overlapping. It looks as though this is because I have set the body to start 100 px from the edges of the screen. How can I make it so that the content of the pages dont all move like this in a smaller window and in fact hodl their position. Is it possible?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Effovex
post Mar 13 2007, 05:54 AM
Post #3


Serious Coder
*****

Group: Members
Posts: 251
Joined: 6-January 07
From: Sherbrooke, Qc, Canada
Member No.: 1,477



It would most likely involve floating the image but a link to a page exhibiting the problem would help in giving specific advice.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 13 2007, 06:00 AM
Post #4


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

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



It sound like you use 'position: absolute' in an unwise way, you have positioned everything relative the browser window. Is that so? Without seeing the page, all I can say is "Don't do that". happy.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
gsd12345
post Mar 13 2007, 07:01 AM
Post #5


Member
***

Group: Members
Posts: 30
Joined: 26-February 07
Member No.: 2,031



I have used position absolute. Is that whats causing it, should I remove this, if so should it be replaced with something else?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 13 2007, 07:11 AM
Post #6


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

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



At least you shouldn't use it the way you have done. There are often many ways to accomplish something. As said, hard to make suggestions without knowing what you try to do.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
gsd12345
post Mar 13 2007, 07:55 AM
Post #7


Member
***

Group: Members
Posts: 30
Joined: 26-February 07
Member No.: 2,031



Here is an example of what I mean (admittedly a bad one). I have positioned the image 100px from the right of the screen which is how I want it to be in a full screen, (I know the text overlaps on this example already). In a smaller screen it remains 100px form the right as the code instucts and then of course has the text overlapping it. I want this to not happen so that if the window is adjusted it doesnt move with it, is there a way of fixing it in place so that if the window is smaller it needs to be scolled to, or something like that?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
gsd12345
post Mar 13 2007, 09:14 AM
Post #8


Member
***

Group: Members
Posts: 30
Joined: 26-February 07
Member No.: 2,031



[attachmentid=191
QUOTE(gsd12345 @ Mar 13 2007, 07:55 AM) *

Here is an example of what I mean (admittedly a bad one). I have positioned the image 100px from the right of the screen which is how I want it to be in a full screen, (I know the text overlaps on this example already). In a smaller screen it remains 100px form the right as the code instucts and then of course has the text overlapping it. I want this to not happen so that if the window is adjusted it doesnt move with it, is there a way of fixing it in place so that if the window is smaller it needs to be scolled to, or something like that?



Attached File(s)
Attached File  sitecode2.htm ( 3.35k ) Number of downloads: 465
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
gsd12345
post Mar 13 2007, 09:17 AM
Post #9


Member
***

Group: Members
Posts: 30
Joined: 26-February 07
Member No.: 2,031



Attached File  sitecode2.htm ( 3.35k ) Number of downloads: 990

Here is an example, althougth the picture may not show the box where it will be is on here. As you can see the text goes right through it.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 13 2007, 01:06 PM
Post #10


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

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



Yeah, you've positioned averything absolute. Try to losen that up some. You could float the image right. If you don't want the text to wrap around it, give the text section (you'll need to wrap it in an extra DIV) a rigt margin that makes it go free from the image.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 13 2007, 01:11 PM
Post #11


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

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



I merged this thread with the one you had in the HTML forum.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Ekpezu
post Mar 13 2007, 01:34 PM
Post #12





Group: Members
Posts: 1
Joined: 1-March 07
Member No.: 2,059



QUOTE(gsd12345 @ Mar 13 2007, 12:45 PM) *

When my webpages open in a smaller window the different elements (ie the image, the text, the menu,) are all grouped together and overlapping. It looks as though this is because I have set the body to start 100 px from the edges of the screen. How can I make it so that the content of the pages dont all move like this in a smaller window and in fact hodl their position. Is it possible?

Try this:
Set the size using percentage(i.e 100%) rather than using the pixel
cos the 100 pixel is just like u using 10%
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: 19th April 2024 - 02:52 PM