Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Padding problem in everthing except Dreamweaver
Old 06-30-2008, 10:00 AM Padding problem in everthing except Dreamweaver
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
The div 'box' keeps budging against the bottom of its two containing divs. Ive tried several methods to fix it, such as applying 1px of padding to both the box div, aswell as those that contain it.

Ive also tried using the '<br class="clear" />' in all sorts of places but that still doesn't seem to work!

If I remove the box div then the padding reappears, so Im guessing thats causing the problem?

HTML:
Code:
<div id="contentBgWide">
          <div id="contentWide">
            <h1>Processing</h1>
                <div class="box">
                  <p>Performing actions...</p>
                  <p>Apollyon demo project updated successfully.</p>
              </div>
            <br class="clear" /></div>
CSS:
Code:
#contentBgWide {
    width:720px;
    background:url(../image/bgCropWideBtm.gif) no-repeat 0 100%;}
    
#contentWide {
    width:690px;
    background:url(../image/bgCropWideTop.gif) no-repeat;}
    
    
.box, .boxHide {
    border:#CCC solid 1px;
    background-image:url(../image/bgStripeFaint.gif);}
    
.boxHide {
    display:none;}
    
.box p, .boxHide p {
    margin:1em;}
</div>
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 06-30-2008, 10:07 AM Re: Padding problem in everthing except Dreamweaver
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I'm sorry, I must be confused. Is Dreamweaver a browser?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 06-30-2008 at 10:16 AM..
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-30-2008, 10:09 AM Re: Padding problem in everthing except Dreamweaver
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
lol no its an editor, surely you must have heard of Dreamweaver??
http://www.adobe.com/uk/products/dreamweaver/
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 06-30-2008, 10:17 AM Re: Padding problem in everthing except Dreamweaver
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
So, I plugged in your code into a browser, and nothing seems out of place. You must not be showing us all of the code. Do you have a link to the page? (P.S. I was just being silly)
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-30-2008, 10:41 AM Re: Padding problem in everthing except Dreamweaver
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
haha I did think it seemed a little strange! Here is a link to the page [just ignore all the error messages].

http://69.16.196.116/~inspin/files/m...in/process.php

Notice how there is no gap between the box div and its container.
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 06-30-2008, 11:45 AM Re: Padding problem in everthing except Dreamweaver
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
If I understand you right, you want there to be some padding on the bottom of the div with an id="contentWide", so that there is a gap between the bottom of the box, and the edge of its container.

One way to do this, for example, is to simply add padding to #contentWide, like this:
Code:
#contentWide {
padding-bottom: 20px;
}
Or however many pixels you think is needed.

The <br class="clear" /> is not needed, and may be removed. This is a device that used to clear floats, nothing else.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-30-2008, 06:32 PM Re: Padding problem in everthing except Dreamweaver
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Wow your absolutely right! lol I completely forgot to even add padding. I was confused about how they all looked right on other pages, but thats because they all contained paragraphs at the bottom, and its the paragraphs that are assigned the padding!

argrgghh silly me!
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Reply     « Reply to Padding problem in everthing except Dreamweaver
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39397 seconds with 12 queries