|
| |
|
|
GolfMad
Posts: 181 Joined: 3/20/2002 From: UK Status: offline
|
Weird image behaviour in CSS design - 3/7/2008 18:48:59
I am working on template to set up our local golf club site. http://tgc.sitesoon.co.uk/ Trying again to design in CSS with divs rather than tables is proving difficult. I am going to hand the main content area over to the clubs admin but at present am using EWD SP1 and am renaming pages php as the content management will be php based. If I press enter on my keyboard, sometimes a <p> tag is created, sometimes a <b />. Worse, the images shoot off left or right sometimes when pressing enter and extend over the sites area, left or right dependant on which related text I alter. Is it someting to do with my bad css coding for the images, or is it EWD when I name the page php? Thanks to anyone willing to have a look. Regards Phil
|
|
|
|
GolfMad
Posts: 181 Joined: 3/20/2002 From: UK Status: offline
|
RE: Weird image behaviour in CSS design - 3/8/2008 3:48:14
Thanks for having a look Jaybee. I thought I had attended to the css as you suggested but must have something wrong. I only changed to <p> spacing as it seemed to stop the lower image shooting left when I just tried to break the lower block of text up with a <br /> tag. EWD won't leave the text alone either it keeps adding <span> tags to it. For the whole of the centre content div I used the following: #center1 { margin: 0px; width: 740px; padding: 10px 20px 10px 30px; for say the lower image it has this class to float it: .imageleft2 { margin: 0px; float: left; padding: 0px 10px 0px 0px; vertical-align: text-top; So I thought I had taken care of the divs for margin and padding and floated the images left or right as applicable. If you are able to expand on the corrections necessary I would be very grateful thanks Jaybee. Regards Phil
|
|
|
|
GolfMad
Posts: 181 Joined: 3/20/2002 From: UK Status: offline
|
RE: Weird image behaviour in CSS design - 3/8/2008 12:24:45
Thanks very much Jaybee, that simple explanation enabled me to clean the code up and it works fine now. I did notice that yours had the first <p> before the image, then some text followed before the closing </p> tag. With mine now there is no <p> before the first image, it starts after the closing img tag - does that matter and will it lead me to problems? <div> <img class="left" src="xxxxxxxxxx" alt="" /> <p> Text text text text text text text text text text</p> <p>Text text text text text text text text text text</p> </div> Regards Phil
|
|
|
|
GolfMad
Posts: 181 Joined: 3/20/2002 From: UK Status: offline
|
RE: Weird image behaviour in CSS design - 3/8/2008 13:38:23
Thanks you very much Jaybee for all your help. Regards Phil
|
|
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
|
|
|