Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-23-2012, 04:53 AM   PM User | #1
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 148
Thanks: 28
Thanked 1 Time in 1 Post
SRD75 is an unknown quantity at this point
Border not fully visible

Hi Folks. This page has a sidebar, which contains an enquiry form.

The form has a border, but the right hand border is being pushed out of view.

Can you see how to solve this?
SRD75 is offline   Reply With Quote
Old 11-23-2012, 05:24 AM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello SRD75,
It looks like your form is 280px wide while the width of your sidebar is only 270px.

See the box model here. The box model says that whatever you put inside an element cannot be larger than that element. margin/padding/border all count when figuring width/height.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 11-23-2012, 06:19 AM   PM User | #3
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 148
Thanks: 28
Thanked 1 Time in 1 Post
SRD75 is an unknown quantity at this point
Thanks again Excavator.

I've changed the form to 270px, and the fieldset it contains aswell, but the fieldset is being pushed out to 290px.

I can't see what is doing the pushing. None of the elements the fieldset contains are this wide.
SRD75 is offline   Reply With Quote
Old 12-10-2012, 05:28 AM   PM User | #4
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 148
Thanks: 28
Thanked 1 Time in 1 Post
SRD75 is an unknown quantity at this point
*bump*

Can anyone see what is pushing my div sidewards?
SRD75 is offline   Reply With Quote
Old 12-10-2012, 06:45 AM   PM User | #5
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Quote:
Originally Posted by SRD75 View Post
*bump*

Can anyone see what is pushing my div sidewards?
Code:
.sidebar-box {
    height: auto;
    margin-bottom: 25px;
    /*overflow: hidden;*/
    clear: both;

}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
SRD75 (12-11-2012)
Old 12-11-2012, 03:29 AM   PM User | #6
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 148
Thanks: 28
Thanked 1 Time in 1 Post
SRD75 is an unknown quantity at this point
Beautiful. Thanks.
SRD75 is offline   Reply With Quote
Old 12-12-2012, 12:20 PM   PM User | #7
OlgaRainbow
New to the CF scene

 
Join Date: Nov 2012
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
OlgaRainbow is an unknown quantity at this point
One more Thanks! found it useful for me.
OlgaRainbow is offline   Reply With Quote
Reply

Bookmarks

Tags
css, width

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 01:30 PM.


Advertisement
Log in to turn off these ads.