For some reason there is a gap in between some of my <divs>. It doesn't happen at the top to my header and navbar but once I go into my body it starts and I can't figure out why. any help would be greatly appreciated. Heres the link to the page : http://naturalfoodrepo rts.com/chiaseedreport. php
and heres all the code on that page: -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<head>
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
<title>Natural Food Reports</title>
-
<link href="root/reports style/reports.css" rel="stylesheet" type="text/css" />
-
</head>
-
-
<body>
-
<div id="wrapper">
-
<div id="header">
-
<div id="title"><a href="index.php" class="titlelink">Natural Food Reports</a></div>
-
</div>
-
<div id="navbar">
-
<div id="homereportsaboutcontact"><a href="index.php"> Home</a> | <a href="reports.php">Reports</a> | <a href="about.php">About</a> | <a href="contact.php">Contact</a></div>
-
</div>
-
<div id="reportstitle">
-
<p>~Chia Seeds~</p>
-
<p><img src="imgs/Health & Super Foods/ChiaSeeds&OtherSeeds/chia seeds.jpg" alt="chiaseeds" width="200" height="200" border="0" /></p>
-
</div>
-
<div id="researchresultstitle";>Research Results:</div>
-
<div id="researchresults">
-
<p>"...when you hydrate the seeds in water the seeds shell opens up and absorbs up to nine times its volume in water. This then forms a gel, which is called Chia Seed Gel. It is said that the gel has the potential to help keep your body hydrated. The gel is also 90% soluble fiber, which may be beneficial for your digestive track. Many people say that they use the seeds when they are involved in sports or physical activities for endurance." </p>
-
<p>"....the seeds have twice the protein of any other seed or grain, five times the calcium of milk, boron which is trace mineral that helps transfer calcium into your bones, omega 3 and omega 6 which are essential oils for the body."</p>
-
<p>" ...the soluble fiber in the gel forms a wall between carbohydrates and the body, releasing them slowly into the body. Dieters love the seeds because it can be added to any food or drink in a ratio of 75% to the volume of food or drink and will not change the taste. Because the carbohydrates are released slowly you may get the feeling of being full. Many use the seeds as a way to control their appetites. The gel has no taste." </p>
-
</div>
-
<div id="logo">Eat Better. Feel Better. Live Better.</div>
-
<div id="footer">© 2010 Natural Food Reports
-
</div>
-
</div>
-
</body>
-
</html>
-
Heres the code on my external style sheet attached to that page: -
body {
-
margin: 0px;
-
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
-
background-image: url(v2bg.jpg);
-
}
-
-
#wrapper {
-
margin: 0px;
-
}
-
-
#header {
-
background-image: url(newbanner.jpg);
-
height: 200px;
-
}
-
-
#title {
-
font-family: "Lucida Console", Monaco, monospace;
-
font-size: 55px;
-
color: #000;
-
position: absolute;
-
left: 320px;
-
top: 79px;
-
width: 669px;
-
height: 58px;
-
}
-
.titlelink:link{
-
color:#000;
-
text-decoration:none;
-
font-size: 50px;
-
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
-
}
-
.titlelink:hover { color:#000;
-
}
-
.titlelink:visited{ color:#000;
-
text-decoration:none;
-
}
-
.titlelink:active{ color:#000;
-
text-decoration:none;
-
}
-
#logo {
-
position:absolute;
-
width:284px;
-
height:32px;
-
z-index:1;
-
left: 322px;
-
top: 130px;
-
color: #FFF;
-
}
-
#navbar {
-
background-color: #FFF;
-
background-image: url(navbar.jpg);
-
background-repeat: no-repeat;
-
height: 30px;
-
width: 100%;
-
margin: 0px;
-
}
-
#homereportsaboutcontact {
-
color: #000;
-
margin-left: 400px;
-
}
-
#reportstitle{
-
font-size: 24px;
-
color: #000;
-
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
-
text-decoration: none;
-
background-color: #FFF;
-
text-align: center;
-
width: 800px;
-
margin-right: auto;
-
margin-left: auto;
-
clip: rect(0px,auto,auto,auto);
-
}
-
#researchresultstitle {
-
font-size: 24px;
-
text-align: center;
-
background-color: #FFF;
-
margin-top: 0px;
-
width: 800px;
-
margin-right: auto;
-
margin-left: auto;
-
}
-
#researchresults {
-
background-color: #FFF;
-
margin-right: auto;
-
margin-left: auto;
-
width: 800px;
-
font-size: 14px;
-
}
-
-
#footer {
-
background-color: #999;
-
height: 60px;
-
text-align: center;
-
font-weight: bold;
-
margin-bottom: 0px;
-
}
-
-
-
-
-
-
.bluelinks:link {
-
color:#00F;
-
font-size: 14px;
-
}
-
.bluelinks:visited { color:#00F;
-
text-decoration:underline;
-
}
-
.bluelinks:visited { color:#00F;
-
text-decoration:underline;
-
}
-
.bluelinks:hover { text-decoration:underline;
-
}
-
a:img{ border:0;
-
}
-
a:link{
-
color:#000;
-
text-decoration:none;
-
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
-
font-size: 18px;
-
}
-
a:hover{
-
color:#000;
-
text-decoration:underline;
-
}
-
a:visited{
-
color:#000;
-
text-decoration: none;
-
}
-
-
-
a:active{
-
color:#000;
-
text-decoration:none;
-
text-align: center;
-
}
-
tom
7 6152
Most elements have a default margin applied to them. I'm not on my dev computer to check but applying 'margin:0' to the paragraphs, divs will probably solve that.
my margins are auto for left and right and when i set the top to 0 nothing happens it still stays the same; with a gap. :(
You have margin set to zero on the divs but it's the p element that has margins that are pushing up against the other divs.
omg. lol thank you so much. i didnt even think to check that. thanks again
i just a new css rule for "p" making it have a margin 0 for all. that should fix the problem for good right?
Yes. Some people set margins on everything to zero and then reset them to what they want. Google for "CSS Reset". The problem is, if they are going to set it to something else anyway, why are they setting it to zero? That's why many don't think it's a good idea.
yea i just set all "p" to zero margin because I have margins left and right on auto for a lot of my divs so that wouldn't really work for me. but, i did solve this little problem thanks to you!!
I really appreciate you taking the time to reply to my thread. Hopefully one day I can help people too like how you helped me. Thanks again!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: deepak datta |
last post by:
Hello Gurus, please help suggest how I can remove the space between
the top banner image & the rest of the page in:
http://www.naturerugs.com/affiliate/default.asp
I have tried numerous things, but nothing workd. I am not sure how
that space was created there in the first place.
Thanks a ton.
Deepak
|
by: Tony T |
last post by:
Can anyone help me with this - it may be obvious, but I just can't see it.
I'm working with PC and WinME. In IE6, the two divs inside the wrapping div
have no space between them, which is how I want it to be, but in NN6.2 and
Opera7.11 there's a gap between them. I've tried all the fixes I can think
of, but can't get it to work. Any help would be much appreciated.
Pared-down example: http://www.tonyturton.com/test/styletest.html...
|
by: mattbostock |
last post by:
URL: http://www.drfunkenstein.net/
Username: ciwas
Password: password
Hi,
I'm having difficulty with getting the header image (top.png,
background of div#container) to stay next to div#main - at the moment
there's a large gap between the two. The problem is visible in IE and
Firefox.
|
by: D. Alvarado |
last post by:
Hello
I have 5 divs, and initially the lower 4 are hidden. I would like
everything beneath the 5th div to appear flush against the first
visible div. But right now, there is a gap of white space between the
first visible div, and everything beneath the 5th. Here is this code:
<form name="f">
<div id="Item0">Item 1:<input type="text" size="32" maxlength="32"
name="Name0" id="Name0"></div>
|
by: tabert |
last post by:
I want to use JavaScript when a button is clicked to show and hide a
SPAN or DIV. This works in both IE and Netscape, but what I'd like to
happen is for there to be no white space where the hidden div is.
I start with two visible divs and in between them are two more hidden
ones...in Firefox this works fine--the two visible ones are right next
to each other, the button fires the script and the other div shows up
in the middle. Another...
| |
by: Jordan S |
last post by:
I have been using the old HTML unordered list in order to have bullet-point
lists. But they don't look good because there is no white space between each
list item.
<UL>
<LI>List Item Here
etc...
How can I get a bullet-point list but also have white space between each
item, control indentation of the list, etc?
|
by: dw |
last post by:
hello -
first, let me state that i am an Asp.Net rookie.
here is the situation:
i have a page that looks good in the vs.net designer, but when the page
renders there are extra amounts (vertically) of space between controls. i
have all of the controls in a table, to help line them up, and I have
reviewed the html to verify that there are no extra spaces or paragraphs or
breaks between the controls. however, when i run the web site,...
|
by: maroger |
last post by:
I'm sure this is a common issue, but I haven't come across anything
that works for me thusfar. I am trying to fix my header, which works
fine in firefox but has extra space in IE. Here are example html and
css files that illustrate my problem:
http://torch.cs.dal.ca/~mroger/css/ietest.html
http://torch.cs.dal.ca/~mroger/css/styles.css
I would like to get both browsers to display the page as firefox does.
That is, with no space...
|
by: Veerle |
last post by:
Hi,
I have a list:
<ul>
<li>Li 1 - blablablablabla</div>
<li>Li 2 - blablablablabla</div>
<li>Li 3 - blablablablabla</div>
<li>Li 4 - blablablablabla</div>
<li>Li 5 - blablablablabla</div>
</ul>
|
by: removeps-groups |
last post by:
Is there any way to control the space between top of browser or frame
and document body?
What I have is this: There is a simple file test1.html, and file
test.html that displays test1.html in an iframe. On the iframe I set
marginheight and marginwidth to zero. But there is one line of blank
space between the top border of the iframe and the first line of
text. However, the iframe's content document's body's offsetHeight
gives the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |