catalyst2 community forums  

Go Back   catalyst2 community forums > catalyst2 Community > Sites Hosted by catalyst2

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 23-06-2004, 12:07 PM   #1 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
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.
aljames is offline   Reply With Quote
Old 23-06-2004, 12:35 PM   #2 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
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;
}
You need to change this to:
Code:
.story img {	
	float: left;
	margin: 0 0 20px 20px;
	padding: 2px;
	border: 1px solid #ccc;
}
So your basically changing the float from a right float to a left float.

Hope that helps

Jas
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 23-06-2004, 01:45 PM   #3 (permalink)
Registered User
 
markjanssen's Avatar
 
Join Date: May 2003
Location: /home/mark/
Posts: 389
Send a message via ICQ to markjanssen Send a message via AIM to markjanssen Send a message via MSN to markjanssen Send a message via Yahoo to markjanssen
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
markjanssen is offline   Reply With Quote
Old 23-06-2004, 02:29 PM   #4 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
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
aljames is offline   Reply With Quote
Old 23-06-2004, 02:40 PM   #5 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
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
WhiskyFudge is offline   Reply With Quote
Old 23-06-2004, 02:46 PM   #6 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
Join Date: Apr 2003
Posts: 159
OK I sorted the pic border fine thanks.

Now, Ive changed the biography page pianobar image as youll see its not quite all the way over to the left.
as Id like it.

Any suggestions?

Cheers
aljames is offline   Reply With Quote
Old 23-06-2004, 02:51 PM   #7 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
Watchin your vid now, you got some talent! anywho:

Code:
style="float: left"
needs to become:

Code:
style="float: left; margin: 0 20px 20px 0;"
That should do it
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 23-06-2004, 02:54 PM   #8 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
Join Date: Apr 2003
Posts: 159
That's it! You did it!

Cheers Whisky man, and also for the compliment on my playing.

Al
aljames is offline   Reply With Quote
Old 23-06-2004, 02:55 PM   #9 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
No worries.
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 23-06-2004, 03:00 PM   #10 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
Join Date: Apr 2003
Posts: 159
strange, my DW MX2004 preview looked perfect but then when I uploaded the newly saved page, it does not look quite the same...

I spoke too soon!
aljames is offline   Reply With Quote
Old 23-06-2004, 03:02 PM   #11 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
It's uploaded as:
Code:
style="float: left; margin: 0 px  0;"
Check your code and uplaod again!

Jas
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 23-06-2004, 03:12 PM   #12 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
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
aljames is offline   Reply With Quote
Old 23-06-2004, 03:19 PM   #13 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
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;
Hope that helps and makes sense. If you want to learn CSS I suggest you have a look at W3Schools CSS Tutorial . W3Schools also do some good HTML tutorials.

Jas
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 23-06-2004, 03:36 PM   #14 (permalink)
Al James-PianoEntertainer
 
aljames's Avatar
 
Join Date: Apr 2003
Posts: 159
Cheers mate. THink its sorted now. And you are right I ought to read up and educate myself, there's no excuse!

Respect

Al
aljames is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:10 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.