Current location: Hot Scripts Forums » General Web Coding » HTML5 » moving a div 15 pixels lower doesnt work


moving a div 15 pixels lower doesnt work

Reply
  #1 (permalink)  
Old 11-14-11, 07:50 AM
Creativedot Creativedot is offline
New Member
 
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
moving a div 15 pixels lower doesnt work

Hello...i have just started learning HTML/HTML5

im doing good so far i guess...except that sometimes css doesnt work on HTML that well

i am at the moment trying to move the footer 15 pixels lower than the main content...

main content is wrapped up in this div:

Quote:
<div id="mainContent">
the css is like this..

Quote:
#mainContent{
margin-bottom:15px auto;
}
shouldnt that work?
Reply With Quote
  #2 (permalink)  
Old 11-23-11, 02:38 AM
alxkls alxkls is offline
Newbie Coder
 
Join Date: Nov 2011
Posts: 98
Thanks: 0
Thanked 9 Times in 9 Posts
if you are applying margin-bottom to the mainContent div the browser would most probably try to pull the mainContent up rahter than pushing the footer down... not sure how you structured your layout but id suggest using margin-top:15px on the footer
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Space Above Form xavier039 CSS 1 07-13-09 10:52 PM
div css theighost CSS 11 09-14-08 02:30 AM
[SOLVED] delay on html element properties? UnrealEd JavaScript 5 05-05-08 03:23 AM
The Art Nexus seeking PHP programmers TheArtNexus Job Offers & Assistance 5 02-26-08 03:08 AM
Can't Understand java script maverickminds JavaScript 1 07-16-06 01:23 PM


All times are GMT -5. The time now is 10:20 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.