Crappy Problem...

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



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 22nd, 2007, 18:25
Junior Member
Join Date: Jan 2007
Location: South Cambs, UK
Age: 18
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to afmanuk
Crappy Problem...

I know this is really basic problem...
But I can't seem to find a solution to it...
I have a gap...
(Can't be bothered to link css right now)
Link

I know it's crap etc etc. It's just a quick favour for a friend
Reply With Quote

  #2 (permalink)  
Old Nov 22nd, 2007, 18:27
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Crappy Problem...

Where's the gap? It all looks good to me...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
  #3 (permalink)  
Old Nov 22nd, 2007, 18:29
Junior Member
Join Date: Jan 2007
Location: South Cambs, UK
Age: 18
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to afmanuk
Re: Crappy Problem...

Untitled9.jpg

I see that gap

Last edited by karinne; Nov 22nd, 2007 at 18:33. Reason: Please attach BIG images.
Reply With Quote
  #4 (permalink)  
Old Nov 22nd, 2007, 18:31
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Crappy Problem...

That is caused by the images. See:
header.png
And the other one:
content_top.png
Put them together, and you get a gap...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)

Last edited by karinne; Nov 22nd, 2007 at 18:34. Reason: Please attach BIG images.
Reply With Quote
  #5 (permalink)  
Old Nov 22nd, 2007, 23:22
Reputable Member
Join Date: Apr 2007
Location: Scotland
Age: 17
Posts: 233
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Blake121
Re: Crappy Problem...

Add "margin-top: -5px;" to your mainContent div style.

e.g.

Code: Select all
#mainContent
{
	width: 586px;
	height: 400px;
	display: block;
	overflow: auto;
        margin-top: -5px;
}
Blake
Reply With Quote
  #6 (permalink)  
Old Nov 23rd, 2007, 01:59
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Crappy Problem...

That sounds like the best fix. Use margin-top: -3px; though. Otherwise, IE squeezes the image...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)

Last edited by Stuart; Nov 23rd, 2007 at 15:05.
Reply With Quote
  #7 (permalink)  
Old Nov 23rd, 2007, 07:10
Junior Member
Join Date: Jan 2007
Location: South Cambs, UK
Age: 18
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to afmanuk
Re: Crappy Problem...

Haha. Thanks for all your help
I'll probably just use the -5px margin-top for now and change the images when I can be bothered
Reply With Quote
  #8 (permalink)  
Old Nov 23rd, 2007, 13:26
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Crappy Problem...

OK. Sounds good.
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)

Last edited by Stuart; Nov 23rd, 2007 at 14:43.
Reply With Quote
  #9 (permalink)  
Old Nov 23rd, 2007, 14:07
Emzi's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Manchester
Age: 25
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Crappy Problem...

The site doesn't look good in IE7. The text is below the box it's supposed to sit in.
Reply With Quote
  #10 (permalink)  
Old Nov 23rd, 2007, 14:14
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: Crappy Problem...

You have a similar issue in IE6, it's inside you container but the box is extended. It looks like the the box is sitting under the nav.
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #11 (permalink)  
Old Nov 23rd, 2007, 14:59
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Crappy Problem...

Yeah, I noticed that too. Fortunately, I fixed it. Here is the code:
HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Rudiguard</title>

<style type="text/css">
body
{
    width: 100%;
    background-color: #c3c3c3;
    padding: 0;
    margin: 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10pt;
}

img { padding: 0; margin: 0; }

#wrapper
{
    width: 730px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#contentWrap
{
    background: url(images/content_middle.png) repeat-y;
    padding: 0 22px;
    margin: 0;
    height: 400px;
    display: block;
    margin-top: -3px;
}

#Navigation
{
    float: left;
    width: 100px;
    padding-right: 2px;
    height: 400px;
    text-align: center;
}

#Navigation ul
{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#Navigation a
{
    display: block;
    text-decoration: none;
    color: #ffffff;
    margin-top: 3px;
    padding-top: 3px;
    width: 98px;
    height: 25px;
    background: url(images/nav_button.png) no-repeat left top;
}

#Navigation a:hover
{
    background-position: right top;
}

#mainContent
{
    width: 580px;
    height: 400px;
    display: block;
    overflow: auto;
    float: right;
}
</style>
</head>

<body>
<div id="wrapper">
<img src="http://afmanuk-designs.co.uk/Rudiguard/images/header.png" />
<img src="http://afmanuk-designs.co.uk/Rudiguard/images/content_top.png" />
<div id="contentWrap">
<div id="Navigation">
<b>Navigation</b>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Programs</a></li>
</ul>
</div>
<div id="mainContent">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi pede. Nulla vehicula. Maecenas justo enim, tempus ac, rutrum eu, sodales ac, lectus. Aliquam at orci eget nisl gravida ullamcorper. Sed tortor. Proin id turpis. Nunc quis augue id turpis placerat faucibus. Donec malesuada, mauris id tempor gravida, mauris risus laoreet justo, eget malesuada lacus dui a orci. Mauris et tortor. Nulla facilisi. Praesent sodales, dui nec luctus placerat, enim justo molestie erat, sed consectetuer est orci non tortor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Integer condimentum. Morbi vel odio.

Morbi magna nisi, adipiscing sit amet, condimentum sed, imperdiet dictum, pede. Sed sed lorem. Vivamus pretium tincidunt ipsum. Aenean eget odio. Curabitur augue. Ut dignissim, quam ut aliquet egestas, massa tortor imperdiet augue, eget fringilla velit risus ut nibh. Integer pharetra. Nunc facilisis enim ut risus. Proin tellus. Phasellus vel sem nec magna hendrerit consectetuer.

Quisque eu sem nec quam molestie euismod. Pellentesque vitae nisl ut risus consectetuer rutrum. Aliquam erat volutpat. Aenean sed orci. Morbi lacus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent eu ipsum eget risus venenatis tempus. Integer ullamcorper nunc. Suspendisse tempor fringilla mauris. Mauris vel massa quis odio euismod consectetuer. Donec volutpat nisi at diam ullamcorper suscipit. Nulla urna neque, accumsan et, sodales vitae, cursus non, augue. Sed blandit enim vel massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut urna sem, vehicula vel, dictum sit amet, porta quis, metus. Mauris massa. In fermentum. Suspendisse tristique tincidunt nulla. Ut a tellus.

Nunc non massa sit amet velit interdum commodo. Integer vel ligula et nibh pulvinar egestas. Nulla urna mauris, semper ut, venenatis sit amet, condimentum sed, nulla. In commodo, lectus sit amet mattis laoreet, erat nisl consectetuer lorem, eget posuere lorem risus non orci. Sed eleifend, purus ac rutrum aliquet, magna dui hendrerit lacus, at venenatis lorem enim vitae nisi. Nunc lacinia ipsum et augue. Ut tincidunt nisl nec turpis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut semper, ante et laoreet lobortis, magna lectus tristique nisi, ultrices elementum magna enim at metus. Donec nunc tortor, malesuada at, blandit eget, ornare vel, justo. Nullam sapien nulla, cursus at, laoreet quis, accumsan vulputate, urna. Suspendisse potenti. Nullam sodales enim a purus. Vivamus euismod luctus ante. Proin vitae felis.

Fusce dignissim arcu ac pede ornare vulputate. Ut quis urna non enim sodales eleifend. Morbi velit dui, elementum at, dictum vitae, aliquet vitae, elit. Ut viverra mi. Etiam eros. Curabitur a diam. Fusce porta. Maecenas interdum tellus et est commodo blandit. Aliquam euismod ullamcorper justo. Vivamus nunc. Etiam metus. Morbi in massa. Integer aliquet. Aenean a elit. Proin bibendum, dolor dignissim tincidunt accumsan, nisi ligula vehicula nibh, sit amet consectetuer sem lorem et lectus.
</div>
</div>
<img src="http://afmanuk-designs.co.uk/Rudiguard/images/content_bottom.png" />
</div>
</body>
</html>
That should do it... Also, I put the <style> stuff inside the <head> where it is supposed to be. Don't put it in the <body>!
By the way, the margin should be -3px. -5px screws up IE and squeezes the image... Oh, and don't bother changing the images, that won't do it. When I said that, I though you meant the gap between the header and the body, that huge ~100px space. But then, I realized that you meant the small gap at the top of the container. So, again, use the -3px margin, editing the images won't do it.

Cheers
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)

Last edited by Stuart; Nov 23rd, 2007 at 15:03.
Reply With Quote
  #12 (permalink)  
Old Nov 23rd, 2007, 15:06
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 17 Times in 15 Posts
Re: Crappy Problem...

Quote:
Originally Posted by swagner View Post
Yeah, I noticed that too. Fortunately, I fixed it.
Well done Stuart, if we still had rep i'd give ya some.
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #13 (permalink)  
Old Nov 23rd, 2007, 15:08
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Crappy Problem...

Thanks! But it was no problem, I just love helping people...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
  #14 (permalink)  
Old Nov 27th, 2007, 01:05
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Crappy Problem...

Quote:
Originally Posted by welshstew View Post
Well done Stuart, if we still had rep i'd give ya some.
I was off this few days! What happen to the rep points?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #15 (permalink)  
Old Nov 27th, 2007, 01:39
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Crappy Problem...

Quote:
Originally Posted by monie View Post
What happen to the rep points?
I asked the same thing in my thread: "What happened to the rep points?"
It's closed, but Jacob and Rob posted all the answers...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
  #16 (permalink)  
Old Nov 27th, 2007, 01:50
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: Crappy Problem...

I worked so hard to get Rep Points..
So long my rep points..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #17 (permalink)  
Old Nov 27th, 2007, 01:51
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Crappy Problem...

How do you think Jacob feels? He had seven little green blips!
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
Reply

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finally some non-crappy internet games! CloudedVision Webforumz Cafe 4 Apr 7th, 2008 22:21
First image problem and inline list problem konnor5092 Web Page Design 8 Dec 1st, 2007 09:08


All times are GMT. The time now is 16:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43