Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Div problem

This is a discussion on "Div problem" within the Web Page Design section. This forum, and the thread "Div problem are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 8th, 2007, 19:44
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 313
Thanks: 1
Thanked 0 Times in 0 Posts
Div problem

I can't get my 'wrap' (the div with all the main stuff in) to go 80px from top and 300px from bottom.

http://www.timothy-clark.com/store/

Any help?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Sep 9th, 2007, 04:03
alexgeek's Avatar
Moderator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,814
Blog Entries: 9
Thanks: 2
Thanked 3 Times in 3 Posts
Re: Div problem

what have you tried so far?
i have to say it's looks amazing!
__________________
Web Design and Development Blog

Alex Perry
Technical Administrator.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 9th, 2007, 10:55
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 313
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Div problem

thanks very much.

i've tried just the 300 from bottom (without the top) and it goes correct but the top is right at the top over the header. i've tried most things. for some reason, i can't get both the top and bottom where i want.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 9th, 2007, 14:56
alexgeek's Avatar
Moderator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,814
Blog Entries: 9
Thanks: 2
Thanked 3 Times in 3 Posts
Re: Div problem

have you tried stuff like:
margin-top: 100px;
and
margin-bottom: 300px;

?
__________________
Web Design and Development Blog

Alex Perry
Technical Administrator.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 9th, 2007, 15:39
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 313
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Div problem

its ok, ive done something else.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 10th, 2007, 14:16
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div problem

Please post the solution for all to see. Someone else might be having the same problem as you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 10th, 2007, 14:55
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 313
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Div problem

there was no solution, i couldnt do it.

i have a new problem now. for some reason the div "bottom" doesnt go directly under the div "wrap". as youll see, the images of me are covered partially by the bottom div. why is this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 10th, 2007, 18:32
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 313
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Div problem

anyone?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 10th, 2007, 19:47
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div problem

you could try adding

clear: both;

to the #bottom div so it clears the floated divs you have inside the #wrap.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Sep 10th, 2007, 20:30
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 313
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Div problem

that didnt do anything.

my two problems now are:

1/. the image of the red sun doesn't touch the top of the bottom image. They should touch and theyre both just divs. why dont they?

2/. The bottom image doesnt go to the bottom.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Sep 11th, 2007, 20:18
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 313
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Div problem

please help!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Sep 12th, 2007, 12:29
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div problem

In the #footer take out the position: relative and the footer will drop to the bottom.

In the #content you have a top margin added so the sun is not touching that div.
change the margin code to:
margin: 0px 0px 25px 0px
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Sep 12th, 2007, 13:42
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 313
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Div problem

i took the footer out completely in the html file and i altered the content, but the red sun is still a milimeter above the base image and the base image hasnt dropped to the bottom.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Sep 12th, 2007, 14:14
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div problem

Is there relative positioning set for the base image too?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Sep 12th, 2007, 14:45
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 313
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Div problem

yeah, but taking that out hasn't done anything either.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Sep 12th, 2007, 15:41
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,909
Blog Entries: 14
Thanks: 9
Thanked 40 Times in 38 Posts
Re: Div problem

If you change your css for the 3 columns to the following it should work:

Code: Select all
#leftcolumn {
position:relative;
float:left;
width:230px;
text-align:left;
padding-top:20px;
margin-left:10px;
}

#middlecolumn {
position:relative;
width:230px;
float:left;
text-align:left;
padding-top:20px;
margin-left:10px;
}

#rightcolumn {
position:relative;
width:130px;
float:left;
text-align:left;
padding-top:20px;
margin-left:10px;
}
let me know if that helps

Stew
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
xtreme wales - extreme clothing | extreme sports shop | cheap sunglasses
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!