![]() |
|
|
#1 (permalink) |
|
Al James-PianoEntertainer
Join Date: Apr 2003
Posts: 159
|
Why is my images all on the right? - help please?
My website - www.aljames.co.uk please look at the 'biog' page.
I am having a problem where I insert images but they all appear on the right of the text. I would like some of these to be on the left of the page but cant work out why they are all on the right,. I am using dreamweaver 2004 mx and when I click on the "Align" button and select left or anything else, it has no effect on the pic placement? Please can any of you help? Thanks Al p.s. I'm not a real web guru, just a musician who dabbles a bit on DW. |
|
|
|
|
|
#2 (permalink) |
|
Administrator
Join Date: Oct 2003
Posts: 1,484
|
Your CSS file css/aj.css contains:
Code:
.story img {
float: right;
margin: 0 0 20px 20px;
padding: 2px;
border: 1px solid #ccc;
}
Code:
.story img {
float: left;
margin: 0 0 20px 20px;
padding: 2px;
border: 1px solid #ccc;
}
Hope that helps Jas
__________________
Jason Robbins jason@catalyst2.com |
|
|
|
|
|
#3 (permalink) |
|
Registered User
|
If you only want one, add style="float: left;" to the image tag.
__________________
#mark -bash: /dev/mind: No such file or directory homepage: http://www.givemehelp.co.uk/ / support forums: http://www.givemehelp.co.uk/forums/ / irc: #givemehelp on quakenet email: mark@givemehelp.co.uk / msn: mark@givemehelp.co.uk / aim: mark177283829 / icq: 177283829 / yahoo: mark177283829 Mozilla Firefox: Safer, Faster, Better |
|
|
|
|
|
#4 (permalink) |
|
Al James-PianoEntertainer
Join Date: Apr 2003
Posts: 159
|
Thanks guys, I'm nearly there. Now I'm working on my guestbook animated gifs and I cant get the border removed from the gifs - I just want them to be borderless although the other pics on the site I am happy having borders.
Also, I tried the float thing but the images do not completely go to the left (nearly). Help again please? Ta Al |
|
|
|
|
|
#5 (permalink) |
|
Administrator
Join Date: Oct 2003
Posts: 1,484
|
Do you want to upload your improvements so we can see the results and problems?
To get rid of the boarder on all your images remove the boarder line in the CSS quote I mentioned above. Other wise you want to add style="border-wdith: 0;" to your image tag, or style="float: left; border-width: 0;" if you want it left as well. Jas
__________________
Jason Robbins jason@catalyst2.com |
|
|
|
|
|
#12 (permalink) |
|
Al James-PianoEntertainer
Join Date: Apr 2003
Posts: 159
|
Yes I had removed to '20' bits as I couldnt get rid of the large gap (have a look) at the side and bottom of the text. Any ideas how to reduce these gaps by about half? and also how to create a similar gap at the top of the image?
Really sorry to bother u with this, Im sure your busy enough. Al |
|
|
|
|
|
#13 (permalink) |
|
Administrator
Join Date: Oct 2003
Posts: 1,484
|
the values in margin are top right bottom left. If are want all your margins the same size you only need to write:
Code:
margin: 10px; Jas
__________________
Jason Robbins jason@catalyst2.com |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|