logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-20-2012, 09:04 PM   #1
Dannybhoy
 
Join Date: Mar 2012
Posts: 19
Lightbulb placing images inside a DIV

Hi guys

I know there is numerous posts on images and I have looked through many of them however I still cannot get my head round positioning an image inside a DIV tag.

I have laid out my page with the various div tags and in the logo div which is above the naviagation bar I have placed my logo image to the left not with any skill just by using the enter bar and aligning it left. However I now want to add 3 icons for twitter,facebook and tripadvisor over to the right in a row with the address of restaurant above ....

I allready have an external style sheet for the page including the logo div, so how do i go about positioning these images inside of the div itself, people have said css but i do not know how to apply it to the images themselves

any help would be appreciated folks i have a capture of the page and can put code up if that helps

Last edited by Dannybhoy; 04-16-2012 at 10:39 PM..
Dannybhoy is offline   Reply With Quote
Old 03-21-2012, 01:04 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

you could use css for a specific div and assign it a class
Code:
.divimage img{

then float left ,add any margins etc that you want
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 03-21-2012, 05:12 PM   #3
Dannybhoy
 
Join Date: Mar 2012
Posts: 19
Default

What so place another div inside this div and assign it a class ....do i then save this as an internal css file ie this doucment only so it does not affect the rest of the site
Dannybhoy is offline   Reply With Quote
Old 03-22-2012, 01:14 AM   #4
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

no , perhaps i didnt expalinn ewell. I meant you can assign that to the class you use , theres no need to add another div. alternatively you can create a class and apply it to any image as in <img class="yourclass" src="......
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 03-22-2012, 02:34 PM   #5
Dannybhoy
 
Join Date: Mar 2012
Posts: 19
Default

Oh right cool I will give that a whirl thanks
Dannybhoy is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:03 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com