[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 06-29-2005, 12:25 PM   #1 (permalink)
TWM
Web Marketing Specialist
 
Join Date: Oct 2003
Location: Texas, USA
Posts: 1,336
418.50 NP$ (Donate)

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, 08:25 AM   #2 (permalink)
TWM
Web Marketing Specialist
 
Join Date: Oct 2003
Location: Texas, USA
Posts: 1,336
418.50 NP$ (Donate)

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, 12:29 AM   #3 (permalink)
New Member
 
Join Date: Jul 2005
Posts: 8
12.00 NP$ (Donate)

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, 04:25 PM   #4 (permalink)
TWM
Web Marketing Specialist
 
Join Date: Oct 2003
Location: Texas, USA
Posts: 1,336
418.50 NP$ (Donate)

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, 12:29 AM   #5 (permalink)
New Member
 
Join Date: Jul 2005
Posts: 8
12.00 NP$ (Donate)

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, 02:25 AM   #6 (permalink)
NamePros Member
 
Join Date: Aug 2004
Posts: 74
50.00 NP$ (Donate)

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

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


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 11:05 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85