a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Image overlapping text

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Image overlapping text
Page: [1]
 
Nicole

 

Posts: 2855
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
Image overlapping text - 9/1/2005 3:37:17   
Strangely I have two templates the same as each other, both of them feature an image right aligned and both have print style sheets attached to them.

Viewing the print preview for one of them is fine, yet on the other template, the right aligned image wants to overlap the text.

My code in the print style sheet for the right aligned image reads:

img.content1 {
	margin: 5px;
	border: 1px solid #000000;
	float: right;
}


The page where the overlapping is occurring is here (Just click "Print Preview" to see the right aligned image overlapping the text)

The example with it not occurring is here tthe code for this in the print style sheet is the same as the other one.

Any ideas?

Nicole



_____________________________

:)
womble

 

Posts: 5721
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: Image overlapping text - 9/1/2005 4:25:58   
Hi Nicole,

I'm not sure. I'm getting the overlap in 'print preview' with both templates using FF, but it doesn't overlap with either in IE. I was thinking possibly box model, but the overlap's also happening in Opera and Netscape. Hmmm....

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to Nicole)
Nicole

 

Posts: 2855
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Image overlapping text - 9/1/2005 4:29:02   
Thanks Womble,

That's strange that you're getting the overlap on both templates, I'm only getting it on the one. I guess that proves that it's not something wrong with just the second template, there's something wrong with both.

I have a feeling it's the float: right property,, but i'm still not sure.

Thanks for looking.

Nicole

_____________________________

:)

(in reply to womble)
Donkey

 

Posts: 3929
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: offline

 
RE: Image overlapping text - 9/1/2005 4:36:56   
I'm getting exactly what Nicole describes with only one page showing the overlap.

It is a bit of a mystery I've checked both print css sheets and they are identical so I assume the answer lies in the html somewhere. I've had a quick look and nothing obvious jumps out. Hopefully someone will find it later in the day.

I have had similar things happen in the past where there is no apparent reason for a small niggling discrepancy, I've torn my hair out and worried over it for days then suddenly it works for no obvious reason. It may be one of those.:) The only other thing I would suggest trying (for no logical reason) is to re-name the offending image and see if that makes any difference.

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to womble)
caz

 

Posts: 3626
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: Image overlapping text - 9/1/2005 9:12:17   
Often people change font sizing for print styles to points, but ems are print friendly and maybe changing your border measurements to ems would help?

You might also want to look at an !important rule to establish the width in order to allow room for printing as it should - width: 100% !important;
There is the alternative of using - float: none !important; so that the image will be printed in the normal place. This was from A list apart

I normally don't use images for the print version, but in your case they are important. I can't see why there is a difference between the two pages either.

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to Donkey)
Tailslide

 

Posts: 6370
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Image overlapping text - 9/1/2005 9:35:14   
Have you tried doing away with the Width:50% on the column2? (*warning - wild gues*)

_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to caz)
caz

 

Posts: 3626
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: Image overlapping text - 9/1/2005 9:46:19   
But as far as I can see it's taking up more than 50% on the print preview. But hey, try anything with this :)

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to Tailslide)
Tailslide

 

Posts: 6370
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Image overlapping text - 9/1/2005 9:52:05   
I was thinking that maybe if you didn't specify a width and just let it go with the flow then maybe it'd behave... long shot though!

_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to caz)
caz

 

Posts: 3626
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: Image overlapping text - 9/1/2005 11:14:29   
Go with the flow? Every time :)

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to Tailslide)
dpf

 

Posts: 7126
Joined: 11/12/2003
From: India-napolis
Status: offline

 
RE: Image overlapping text - 9/1/2005 11:24:56   
quote:

Go with the flow?


_____________________________

Dan

(in reply to caz)
Tailslide

 

Posts: 6370
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Image overlapping text - 9/1/2005 11:33:29   
quote:

ORIGINAL: dpf

quote:

Go with the flow?



?

_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to dpf)
caz

 

Posts: 3626
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: Image overlapping text - 9/1/2005 13:45:41   
Don't get silly on Nicole's thread children.

quote:

maybe if you didn't specify a width and just let it go with the flow then maybe it'd behave


ie make use of the document's natural flow (for anyone reading this thread later).

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to Tailslide)
Nicole

 

Posts: 2855
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Image overlapping text - 9/1/2005 18:26:35   
Thanks for your input everyone,

I'll give a few of the suggestions a go today as well as another that I thought of last night. Together with the margin/padding/border/ problem i've patched up with the help of Sally here, it looks like I'll have a full day of problem solving ahead today.

I've kind of been debating whether it's worthwhile fiddling with these templates for so long and maybe I should be getting on with something else, especially as I was creating these templates to just quickly add different content in for different clients in the hope of becoming more efficient. But....they have to be right don't they? Completely right if i'm going to achieve this, so each little problem must be solved, and anyway it's increasing my knowledge of different things all the time.

Nicole

_____________________________

:)

(in reply to caz)
Nicole

 

Posts: 2855
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Image overlapping text - 9/2/2005 4:05:18   
Okay, after a day of sorting out this particular problem and the other problem mentioned in my previous post, I think I've fixed them, but would appreciate if those who looked at this problem yesterday could look again now to see if all is well in print preview view on their computers.

Now, assuming that the images aren't now overlapping the text, the problem seemed to have been simply a lack of margin width (for want of a better term) for images aligned to the right in Firefox. I'm aware that Firefox and IE interpret the margin property differently, and to counter this, I've made the margin-right property greater in the Print Style Sheet so that it prints okay using Firefox.

I also stumbled upon a number of other issues regarding margins/borders/padding with these templates which I also believe I've solved, and from now on I think I'll be adding a border to any image using Paint Shop Pro rather than styling an image border with CSS or inline styling. I think it'll just eliminate the hassle of having to worry about how these different browsers are going to treat a border.

The other thing I've learnt is that unless you have many images like thumbnails that are all going to appear the same, don't bother styling images with CSS if you intend to create a Print Style Sheet also, as you'll be forever adjusting the margins. (I do believe I've been told that before":))

Thanks all for your help, appreciate it very much, but also please let me know if the print preview image overlap still isn't working.

Nicole

_____________________________

:)

(in reply to Nicole)
womble

 

Posts: 5721
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: Image overlapping text - 9/2/2005 4:53:26   
Hi Nicole,

I'm afraid I'm still getting a little overlap in FF. Fine in IE and Opera, but still a large amount of overlap in Netscape and Mozilla. Sorry...

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to Nicole)
caz

 

Posts: 3626
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: Image overlapping text - 9/2/2005 6:30:43   
Fine in IE and Opera (8.0 Windows 2000 ) OK in Fx, but a little close to the text; however if I readjust
my right margin to 10 instead of 12.2 in print preview it looks better and hey the text reflows! I am inclined to say that now it is up to the user to know their printer and it's settings.

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to womble)
Nicole

 

Posts: 2855
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Image overlapping text - 9/2/2005 7:09:44   
Thanks Caz & Womble,

I was going to ask what possible settings could be upsetting this, but I really still felt it was a problem with the print style sheet.

In the end I think you're right caz, it's up to the user to know their print settings, but also i should be keeping in mind that these are only templates which will be taken apart and put back together in a number of ways whenever they're applied to a real site, at which time I may look into it further.

Thanks again

Nicole

_____________________________

:)

(in reply to caz)
Donkey

 

Posts: 3929
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: offline

 
RE: Image overlapping text - 9/2/2005 9:09:27   
No overlap now for me in FF.

I don't understand the point about printer settings. I tried playing with the page margins on mine and couldn't get the overlap back. Am I missing something?

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to Nicole)
caz

 

Posts: 3626
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: Image overlapping text - 9/2/2005 9:35:18   
In print preview in Fx you can adjust the page margins for printing, as well as choosing a page size such as "Shrink to fit", or %. You can also adust margins/footers/headers.
You can also do something similar in other browsers - handy when some idiots have super wide pages.



Thumbnail Image
:)

Attachment (1)

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to Donkey)
Donkey

 

Posts: 3929
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: offline

 
RE: Image overlapping text - 9/2/2005 10:24:24   
quote:

In print preview in Fx you can adjust the page margins for printing
I tried that but I couldn't get the overlap back. Does the effect vary depending on which printer you are using? I've tried using 2 different printers and can't see a difference.

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to caz)
caz

 

Posts: 3626
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: Image overlapping text - 9/2/2005 13:37:05   
quote:

ORIGINAL: Donkey

quote:

In print preview in Fx you can adjust the page margins for printing
I tried that but I couldn't get the overlap back. Does the effect vary depending on which printer you are using? I've tried using 2 different printers and can't see a difference.


You can't get it back because the text reflows to take account of element margins/padding. The designer is too good for you to break her design :)

[testing to destruction again?]

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to Donkey)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> Image overlapping text
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts