| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Mar 2006
Location: Shropshire
Posts: 143
|
Same problem again
hello, I have the same problem I did before of another site, which I didnt sort out. basically this is my site: http://www.cse.dmu.ac.uk/~p04288752/csci1404/Website/ as you can see the stroll box is at the bottom of the page, I want it on top of the gray box above it. But the only way I can seem to do it is by putting top:-500px, which leaves space at the bottom of the page where the stroll was. How can I get round this? here is teh bit of code for the stroll box: <div class="news container" style="height: 440px; width: 510px; overflow: auto; margin:0 auto; left:40px; position:relative; z-index:2;"> <p> contents goes here </p> </div> can anyone please help me? |
|
|
|
|
|
#8 (permalink) | |
|
Senior Member
Join Date: Mar 2006
Location: Shropshire
Posts: 143
|
Quote:
thank you Last edited by key_uk : 02-04-2006 at 19:14. Reason: forgot something |
|
|
|
|
#9 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,205
|
well update the link with the news within the #header2 div then. that would be a start. Lose the xml prologue on the first line. That puts IE into quirks mode. Code:
Add a proper doctype Code:
Code:
What is going on there? top: -534px, left: 17px, top: 1px, left: 28px blah blah. How do you expect to have a clue where to start there? |
|
|
|
#10 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,205
|
a 6 year old can do better in 10 minutes. measurements might be out but you get the idea. http://www.lifeofsmallbeer.co.uk/crap/butcher/ help yourself. you're welcome. |
|
|
|
#12 (permalink) |
|
Senior Member
Join Date: Mar 2006
Location: Shropshire
Posts: 143
|
k thanks, im gonna give it a try now. did you put all the images as div backgrounds? if you did how did you do the content part as there is 3 images, how can I put them 3 images in one background? im im really confuessed Last edited by key_uk : 02-04-2006 at 22:04. |
|
|
|
#13 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,205
|
Code:
I merged the two column images into one and used it as a background for #content. This means that both columns with always look like they're the same height. http://www.lifeofsmallbeer.co.uk/cra...content_bg.gif the top image for the menu is a background of #sub_content, and the top image of the news box is a background of #main_content. your code was such a mess it was easier to redo it and hope you might gain from the new version. |
|
|
|
#15 (permalink) |
|
Senior Member
Join Date: Mar 2006
Location: Shropshire
Posts: 143
|
hello again, Thanks alot smallbeer you have been a great help, one last thing I see you have used this in your code: background: url('content_bg.gif') repeat-y; background: url('bar2.jpg') no-repeat bottom left; background: url('header3.jpg') no-repeat top left; what do these do and mean, thanks key_uk |
|
|
|
#16 (permalink) | |||
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,205
|
what it says on the tin basically. Quote:
adds the content_bg.gif as a background image and repeats it down the y axis - vertically. Quote:
adds the bar2.jpg as a background image , doesn't repeat, to the bottom left (of #header). You'll notice #header has 20px bottom padding. 10px of that is for this image and the other 10px is the space between this and the main masthead image. Quote:
adds the header3.jpg as a background image , no repeat, top left. top left is actually default so that's not needed. |
|||
|
![]() |