how do float a div tag over an image. I have an image as a background in a wrapper that I want to float some text over in a specific spot (bottom right)
What's the difference between a div id="" and a div style=""? Would the div ID just tell you what the div is, where you would use the div style in the style sheet?
@TEB368 you would use a div with an id when you are using and external style sheet like I do for all of my tutorials and is the best way to go about it. A div with a style is when you want to add css styling directly into the html as an "inline" style. so in between the style="you would set your css styles;" Sometimes inline styles may be necessary when creating html newsletters or ebay listings. In general it is excellent practice to use an external style sheet for fast site loading.
@TEB368 if you give a div an id, then you can reference it in the style sheet so if the id is called : div id="teb" then you would create a style in the style sheet called #teb and then add styles that will only affect elements with the id of teb.
@Livefearless Have you ever had the feeling that you was being had Don’t that sh-t make you mad They treat you like a slave, with chains all on your soul, And put whips up on your back, They be lying through they teeth Hope you slip up off your path I don’t switch up I just laugh Put my kicks up on they desk Unaffected by they threats than get busy on they ass See that’s how that Chi-Town made me That’s how my daddy raised me That glittering may not be gold, don’t let no body play me..........
You The MAN!!! I had been searching, reading and looking for a way to do this & you showed me the way! Thanks 4 taking the time to do this! Awesome Video!
ive looked and played with dw all day and i just can do this and its just pissing me off big time
all i want to do it to be able to put pictures onto the design display where i want to put it without disturbing the other pictures next to it ie layers effect sort of thing.
some one please please please answer to this and just tell me how i can just drag the damn pic onto the location where i want it and no pissing about theman68@hotmail.co.uk thanks every1
I've created my webpage and want to centre it but haven't placed everything on each page in 1 div, all my images and text etc are in separate divs. Do i have to transfer them into one div? how would i do this? or is there an another way?!
It's a good tutorial but it seems a bit difficult to follow with the webpage you use as an example. A clean layout with solid color objects would help beginners understand better what's going on.
I have a relitavely normal sized computer screen and inserted a div tag with a margin from left of 250 on my screen.... When viewed on my brothers screen (27") it appeared way to the left. I understand why this happened I just need to know if there is any way of stopping it from going way out on bigger screens.
@monkeymack2 hi yes you can place all of your content into a containing div and set auto margins in the CSS. so for instance if you have a div called wrapper and all the content is inside this div you can set the CSS like this:
thanx shawn... i m very new to dreamweaver and web development stuff,,and it took me a month finding out a right tutorial to get divs align side by side,,,thanx
hi there first of all big thanks for your Tutorial i could able to create a website for an NGO only b'coz of your Tutos but unfortunately today i couldnt able to open your website in my browser can you fix if for me....
@DreamWeaverTutorial I'm trying to center my div tags by setting the right and lift margins to auto which works fine. But when I try to add another div layer on it, it doesn't layer properly even with the right z-index number. The new layer just sits at the bottom of the previous layer.
It'll only layer properly (go on top) when I change the 'position' property to 'Absolute' which defeats the purpose of me trying to center my divs. What am I doing wrong?
@ages777 Im a bit confused. are you trying to put divs on top of divs? or inside of other divs? because if you want them on top of other divs they they would HAVE to be positioned absolute. you can ONLY use z-index with absolute divs and none other.
If you go to my websites contact page and paste in the html and css ill take a look.
@DreamWeaverTutorial I figured out the problem. The answer was nesting DIV's inside each other to create a 'centered layered effect'. My only problem now is how to adjust their 'margin-top' properties of the nested div. When I add a value to it (e.g 200px), it drags down the parent div along with it. How would I go about that?
Thanks for all your help. I've found your videos extrememely helpful in my endeavor to learn HTML
Hi, err I may be missing something but as far as I understand; if you had to explicitly set css float properties for each advert div tag then why would the css property ie the float attribute affect the rest of the page? And then so why would you need to use a clearing tag ? I just thought the float property would only affect the id it's assigned to ?
@7thAttempt because floating any element will take the element out of the document, its kind of like giving the div tag a hover board. so its floating in the air, then any div below it will slide up because it thinks the space is empty. that will keep happening to every element until you tell it to stop doing that. and the br class does that. put 3 divs in a wrapper div, float one right, one left and then try and position the 3rd underneath them. you wont be able to until you clear.
I am designing a 3 column design, where I want the content of col 1 to expand underneath col 2 (which contains a profile image + some text underneath). Col 3 shall stretch down all through the site.
Which width option would you use here? I have tried to set width:auto for col 1, but then it just block away col 2 and 3 horizontally.
I am designing a 3 column design, where I want the content of col 1 to expand underneath col 2 (which contains a profile image + some text underneath). Col 3 shall stretch down all through the site.
Which width option would you use here?
I have tried to set width:auto for col 1, but then it just blocks away col 2 and 3.
I want to design a 3 column design where the first colum to the right is supposed to stretch out its info over the second colum (which is lower / not so high).
Column 1 is a profile column with basic contact info and profile description, where as Col 2 is the profile image (to the right) and then the Col 3 that should stretch through the whole height.
Do you know how to code this? I have tried to set width: auto, but then it just stretches and pushes col 2 and 3 down.
@lifeformlifeform Hi, thanks for your comments, yeah ill be making lots of tutorials over the coming months. Until then check out the website, theres plent of tuts on their and ill be making some by the end of the week :)
I am designing a 3 column design, where I want the content of col 1 to expand underneath col 2 (which contains a profile image + some text underneath). Col 3 shall stretch down all through the site.
Which width option would you use here? I have tried to set width:auto for col 1, but then it just block away col 2 and 3 horizontally.
well..this to my knowledge from just looking at this, is for individuals who have knowledge in HTML CODES...so ya, I only know basic so this is too much for me. You can just do all this without doing html, its your choice. but knowing html would be better, a bit harder but better in the long run although you can do the samething without knowing html.
how do float a div tag over an image. I have an image as a background in a wrapper that I want to float some text over in a specific spot (bottom right)
jamesetaylor89 2 weeks ago
Great video as usual. As you are English and I am also, I am not sure that I like the american pronunciation of Advertisement!
haccuk 4 weeks ago
What's the difference between a div id="" and a div style=""? Would the div ID just tell you what the div is, where you would use the div style in the style sheet?
TEB368 4 weeks ago
@TEB368 you would use a div with an id when you are using and external style sheet like I do for all of my tutorials and is the best way to go about it. A div with a style is when you want to add css styling directly into the html as an "inline" style. so in between the style="you would set your css styles;" Sometimes inline styles may be necessary when creating html newsletters or ebay listings. In general it is excellent practice to use an external style sheet for fast site loading.
DreamWeaverTutorial 4 weeks ago
@TEB368 if you give a div an id, then you can reference it in the style sheet so if the id is called : div id="teb" then you would create a style in the style sheet called #teb and then add styles that will only affect elements with the id of teb.
DreamWeaverTutorial 4 weeks ago
Holy Shit, I don't need Paranormal Activity 3 ads popping up when im sitting in this Uni by myself at midnight...FUUUUUuuuuukkkk
XXHattoriHanzoXX 2 months ago
@Livefearless Have you ever had the feeling that you was being had Don’t that sh-t make you mad They treat you like a slave, with chains all on your soul, And put whips up on your back, They be lying through they teeth Hope you slip up off your path I don’t switch up I just laugh Put my kicks up on they desk Unaffected by they threats than get busy on they ass See that’s how that Chi-Town made me That’s how my daddy raised me That glittering may not be gold, don’t let no body play me..........
ssahraj1 4 months ago
Great Video, Thanks for the help!
Siteezy 5 months ago
i feel like a right div.
ashisonline100 6 months ago
We don't care about that stupid jeep commercial!!!!
manzoor1 6 months ago
You The MAN!!! I had been searching, reading and looking for a way to do this & you showed me the way! Thanks 4 taking the time to do this! Awesome Video!
playa4thee 9 months ago
nointey noine cents at outback steakhouse. lol
irishfaithful1 9 months ago
hi guys im really stuck on something
ive looked and played with dw all day and i just can do this and its just pissing me off big time
all i want to do it to be able to put pictures onto the design display where i want to put it without disturbing the other pictures next to it ie layers effect sort of thing.
some one please please please answer to this and just tell me how i can just drag the damn pic onto the location where i want it and no pissing about theman68@hotmail.co.uk thanks every1
BikeMadBrit 11 months ago
Holly crap man, you totally saved me in a crunch! Totally lovin on the div tags now! Thanks a million!
crhobbs42 11 months ago
@dinglenutzz im so gutted about that! ive been crying for the last 6 hours in depression. boo hoo ..
DreamWeaverTutorial 1 year ago
This has been flagged as spam show
website visit for dreamweaver cs5 step by step free tutorials
dreamweavercstutorials.co.cc
nokhazali 1 year ago
What software package did you use to create this video? It looks really good and I need to do something similar.
S
sabre0 1 year ago
This has been flagged as spam show
Hellooo @DreamWeaverTutorial was wondering if you could help...
I've created my webpage and want to centre it but haven't placed everything on each page in 1 div, all my images and text etc are in separate divs. Do i have to transfer them into one div? how would i do this? or is there an another way?!
pleaseeeeeeeee help me!!
thanks x
tamaraelphick 1 year ago
Comment removed
tamaraelphick 1 year ago
Comment removed
tamaraelphick 1 year ago
It's a good tutorial but it seems a bit difficult to follow with the webpage you use as an example. A clean layout with solid color objects would help beginners understand better what's going on.
vaxter510 1 year ago
I'm currently learning dreamweaver and this tutorial was great, cleared up a couple of problems I was having.
Thanks alot!
scud69er 1 year ago
Very nice vid...tnx for the info
sorry but what would have happended if you floated one on the right and other on the left? Why float them both on the left?
mj5495 1 year ago
Hi,
@DreamWeaverTutorial
Am new to div tags...
I have a relitavely normal sized computer screen and inserted a div tag with a margin from left of 250 on my screen.... When viewed on my brothers screen (27") it appeared way to the left. I understand why this happened I just need to know if there is any way of stopping it from going way out on bigger screens.
Thanks!
monkeymack2 1 year ago
@monkeymack2 hi yes you can place all of your content into a containing div and set auto margins in the CSS. so for instance if you have a div called wrapper and all the content is inside this div you can set the CSS like this:
#wrapper { margin-left:auto; margin-right:auto;
}
- James
DreamWeaverTutorial 1 year ago
@DreamWeaverTutorial
Brilliant, Thanks!!
monkeymack2 1 year ago
@monkeymack2 that will center all of your content into the middle of any computer screen.
DreamWeaverTutorial 1 year ago
@DreamWeaverTutorial Or you could use "margin: 0 auto", yes?
MythOfEchelon 1 month ago
@MythOfEchelon absolutely.
DreamWeaverTutorial 1 month ago
yup. no clue what your doing. no explanation of any thing.
babylonkid 1 year ago
thanx shawn... i m very new to dreamweaver and web development stuff,,and it took me a month finding out a right tutorial to get divs align side by side,,,thanx
toplinkseo 1 year ago
@toplinkseo Glad you liked it but who is shawn? lol
DreamWeaverTutorial 1 year ago 4
wow :)
beatboxsimchayaffa 1 year ago
hi there first of all big thanks for your Tutorial i could able to create a website for an NGO only b'coz of your Tutos but unfortunately today i couldnt able to open your website in my browser can you fix if for me....
lazarusjoseph14 1 year ago
How did you make that website??????
coolkids374 1 year ago
is there a way to do this withouy messin with the codes?
themonster36 1 year ago
thanks, Finally managed the layout my site correctly :)
TheKillerbeat 1 year ago
how did you add your own videos Eg not being from youtube?
TheAddictedGame 1 year ago
Where can i find a tutorial, when the mouse hovers over an image and another larger image shows to the right or left of it?? (not a rollover)
I'll be checking your great tutorials, thanks.
02javis 1 year ago
@02javis you can do a disjointed rollover also known as a swap image. look in the behaviors panel under swap image behaviors.
DreamWeaverTutorial 1 year ago
@DreamWeaverTutorial
okthanks I will let u know..
02javis 1 year ago
@DreamWeaverTutorial I'm trying to center my div tags by setting the right and lift margins to auto which works fine. But when I try to add another div layer on it, it doesn't layer properly even with the right z-index number. The new layer just sits at the bottom of the previous layer.
It'll only layer properly (go on top) when I change the 'position' property to 'Absolute' which defeats the purpose of me trying to center my divs. What am I doing wrong?
ages777 1 year ago
@ages777 Im a bit confused. are you trying to put divs on top of divs? or inside of other divs? because if you want them on top of other divs they they would HAVE to be positioned absolute. you can ONLY use z-index with absolute divs and none other.
If you go to my websites contact page and paste in the html and css ill take a look.
DreamWeaverTutorial 1 year ago
@DreamWeaverTutorial I figured out the problem. The answer was nesting DIV's inside each other to create a 'centered layered effect'. My only problem now is how to adjust their 'margin-top' properties of the nested div. When I add a value to it (e.g 200px), it drags down the parent div along with it. How would I go about that?
Thanks for all your help. I've found your videos extrememely helpful in my endeavor to learn HTML
ages777 1 year ago
@DreamWeaverTutorial
I found it thanks!
02javis 1 year ago
Comment removed
ages777 1 year ago
With that voice you should get into hypnotism.
karmazon 1 year ago
what program did you use for the title( 0:00 ~ 0:30 ) and credits ( 9:36 ~ 9:59 ) animations?
kirkivanbaesa 1 year ago
@kirkivanbaesa I used after effects for that. takes me ages because im not very good at it.
DreamWeaverTutorial 1 year ago
Hi, err I may be missing something but as far as I understand; if you had to explicitly set css float properties for each advert div tag then why would the css property ie the float attribute affect the rest of the page? And then so why would you need to use a clearing tag ? I just thought the float property would only affect the id it's assigned to ?
7thAttempt 1 year ago
@7thAttempt because floating any element will take the element out of the document, its kind of like giving the div tag a hover board. so its floating in the air, then any div below it will slide up because it thinks the space is empty. that will keep happening to every element until you tell it to stop doing that. and the br class does that. put 3 divs in a wrapper div, float one right, one left and then try and position the 3rd underneath them. you wont be able to until you clear.
DreamWeaverTutorial 1 year ago
Hi again,
Maybe you know this:
I am designing a 3 column design, where I want the content of col 1 to expand underneath col 2 (which contains a profile image + some text underneath). Col 3 shall stretch down all through the site.
Which width option would you use here? I have tried to set width:auto for col 1, but then it just block away col 2 and 3 horizontally.
Any idea on how to solve this?
lifeformlifeform 1 year ago
Hi again,
Maybe you know this:
I am designing a 3 column design, where I want the content of col 1 to expand underneath col 2 (which contains a profile image + some text underneath). Col 3 shall stretch down all through the site.
Which width option would you use here?
I have tried to set width:auto for col 1, but then it just blocks away col 2 and 3.
Any idea on how to solve this?
lifeformlifeform 1 year ago
Maybe you know this:
I want to design a 3 column design where the first colum to the right is supposed to stretch out its info over the second colum (which is lower / not so high).
Column 1 is a profile column with basic contact info and profile description, where as Col 2 is the profile image (to the right) and then the Col 3 that should stretch through the whole height.
Do you know how to code this? I have tried to set width: auto, but then it just stretches and pushes col 2 and 3 down.
lifeformlifeform 1 year ago
Brilliant! I am now a subscriber :) Have wondered how the float-attribute worked...
Do you have tutors on creating W3C-valid div designs also...? Need this for several new portals which are going to be designed in Joomla.
lifeformlifeform 1 year ago
@lifeformlifeform Hi, thanks for your comments, yeah ill be making lots of tutorials over the coming months. Until then check out the website, theres plent of tuts on their and ill be making some by the end of the week :)
DreamWeaverTutorial 1 year ago
Excellent! Very appreciated! ;-) Keep it up! :-) Much easier to see these videos than read tons of pages...
lifeformlifeform 1 year ago
This has been flagged as spam show
Hi again,
Maybe you know this:
I am designing a 3 column design, where I want the content of col 1 to expand underneath col 2 (which contains a profile image + some text underneath). Col 3 shall stretch down all through the site.
Which width option would you use here? I have tried to set width:auto for col 1, but then it just block away col 2 and 3 horizontally.
Any idea on how to solve this?
lifeformlifeform 1 year ago
Very good. I subscribed. :) Thanks for the info!
cookingwithanarchy 1 year ago
@cookingwithanarchy you are welcome
DreamWeaverTutorial 1 year ago
nice tutorial - short and to the point
SouthernDrifters 1 year ago
@SouthernDrifters thankyou
DreamWeaverTutorial 1 year ago
You should do a request for partnership!
WWtuts 1 year ago
he seems good, your only lost if your not on this level yet, iam clearly not on this level yet lol, nice one tho
falkon14 2 years ago
@falkon14 lol, im making another tutorial on floating this week end and should explain it a bit better for beginners. I hope..
DreamWeaverTutorial 1 year ago
Very clear and useful. Well done.
jaimito4285 2 years ago
@jaimito4285 thanks for the comments.
DreamWeaverTutorial 1 year ago
Excellent presentation and explanation.
Remiss63 2 years ago
@Remiss63 thanks, I try!
DreamWeaverTutorial 1 year ago
Very good tute. I'll be subscribing for sure, great work.
denno021 2 years ago
how many times does he want to say "DIV TAGS" but nice tut thanks
ainsleymg 2 years ago
@ainsleymg DIV TAGS! lol its a tutorial about floating div tags. I cannot avoid saying it.
DreamWeaverTutorial 1 year ago
wow im lost
jhood7891 2 years ago 6
well..this to my knowledge from just looking at this, is for individuals who have knowledge in HTML CODES...so ya, I only know basic so this is too much for me. You can just do all this without doing html, its your choice. but knowing html would be better, a bit harder but better in the long run although you can do the samething without knowing html.
6broken6heart6 2 years ago
@jhood7891 Just watch it, re-watch it & then watch it again as you play with Dreamweaver & you will get it! Good luck!
playa4thee 9 months ago
That tip about zeroing the margin values set me on a path to fixing something that's been bugging me for months.
Many thanks.
MrFunkinPure 2 years ago 6
Thanks, learning something
tisneyanders 2 years ago
pos, ta bueno...
jester95020 2 years ago
This comment has received too many negative votes show
hello!! Excusame!! Tutorial in Spanish please!!
Peter071000 2 years ago
bollox!
welshdragon2008 2 years ago
NICE TUT MAN 10/10
Eleyo9 2 years ago 3
wow! The best tutorial I've seen so far on divs. Great job, thank you!
art4thesoul 2 years ago 3
thanks. very informative.
Javen24 2 years ago