NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page CSS Code For setting the bottom margin

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-29-2005, 01:25 PM THREAD STARTER               #1 (permalink)
TWM
Web Marketing Specialist
Join Date: Oct 2003
Location: Texas, USA
Posts: 1,335
TWM is a jewel in the roughTWM is a jewel in the roughTWM is a jewel in the rough
 



CSS Code For setting the bottom margin


I have

Quote:
img.newsbar { margin-top: .8cm; margin-bottom: .8cm;}
the margin-top works fine, but the bottom wont. I have tried everything from using px instead of cm to putting it in its own line and everything. Any ideas on how to set the bottom margin with CSS?
TWM is offline  
Old 06-30-2005, 09:25 AM THREAD STARTER               #2 (permalink)
TWM
Web Marketing Specialist
Join Date: Oct 2003
Location: Texas, USA
Posts: 1,335
TWM is a jewel in the roughTWM is a jewel in the roughTWM is a jewel in the rough
 



bump
TWM is offline  
Old 07-02-2005, 01:29 AM   #3 (permalink)
New Member
Join Date: Jul 2005
Posts: 8
val539 is an unknown quantity at this point
 



Hello
why not set the environment height

like <div id="bump" style="height: 120px">
<img src="....." width="30" height="30" style="padding-top: 8px" alt="">
</div>

i am trying to help...
val539 is offline  
Old 07-02-2005, 05:25 PM THREAD STARTER               #4 (permalink)
TWM
Web Marketing Specialist
Join Date: Oct 2003
Location: Texas, USA
Posts: 1,335
TWM is a jewel in the roughTWM is a jewel in the roughTWM is a jewel in the rough
 



The way i am doing it is i set the image height at 100% so that when i add the CSS, no matter how long the page is, it will always be X amount of pixels away from the top of the page and the bottom.

The top part works, but the bottom wont.
TWM is offline  
Old 07-03-2005, 01:29 AM   #5 (permalink)
New Member
Join Date: Jul 2005
Posts: 8
val539 is an unknown quantity at this point
 



Take a look
http://www.w3.org/TR/REC-CSS2/box.html

Could u post the part of ur code?
Attached Images
File Type: png pad_img.png (7.7 KB, 6 views)
val539 is offline  
Old 07-05-2005, 03:25 AM   #6 (permalink)
NamePros Member
Join Date: Aug 2004
Posts: 73
Crabby is an unknown quantity at this point
 



Just add a <div> around your image. If that doesn't work, then remove the margins from the image, and just add this CSS to the newly created DIV:

<div style="padding: .8cm 0cm .8cm 0cm;">
__________________
michael
Crabby is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'll code for you! (PHP, XHTML, CSS, HTML) meinhold Programming 1 05-24-2005 11:13 AM
[NEEDED] Slicing & Html Code + CSS. ASAP happyyo Web Development Wanted 3 04-26-2005 10:41 AM
Basic HTML Tutorial webgear Webmaster Tutorials 8 04-02-2005 03:20 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:21 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger