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.
|
|
|
|
|
![]() |
||
Div problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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? |
|
|
|
#2
|
||||
|
||||
|
Re: Div problem
what have you tried so far?
i have to say it's looks amazing!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
Re: Div problem
have you tried stuff like:
margin-top: 100px; and margin-bottom: 300px; ?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#5
|
|||
|
|||
|
Re: Div problem
its ok, ive done something else.
|
|
#6
|
|||
|
|||
|
Re: Div problem
Please post the solution for all to see. Someone else might be having the same problem as you
|
|
#7
|
|||
|
|||
|
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? |
|
#8
|
|||
|
|||
|
Re: Div problem
anyone?
|
|
#9
|
||||
|
||||
|
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)
|
|
#10
|
|||
|
|||
|
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. |
|
#11
|
|||
|
|||
|
Re: Div problem
please help!!!
|
|
#12
|
|||
|
|||
|
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 |
|
#13
|
|||
|
|||
|
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.
|
|
#14
|
|||
|
|||
|
Re: Div problem
Is there relative positioning set for the base image too?
|
|
#15
|
|||
|
|||
|
Re: Div problem
yeah, but taking that out hasn't done anything either.
|
|
#16
|
||||
|
||||
|
Re: Div problem
If you change your css for the 3 columns to the following it should work:
Stew
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
|
#17
|
||||
|
||||
|
Re: Div problem
also if you add margin-top: -5px; to you bottom div id then it should move it up to line up with the 'sun image'
i.e.
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
|
#18
|
||||
|
||||
|
Re: Div problem
also, your top nav is a bit screwy in IE. you'll need to wrap that in a floated left div for it to look nice across platforms:
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
|
#19
|
||||
|
||||
|
Re: Div problem
sorry, probably confused the bejesus out of you, so here is the fully amended code. works in ie7 ie6 & ff.
|