removing gaps or borders between...

User 463058 Photo


Ambassador
1,075 posts

Hi Bill,

I noticed the page wasn't working correctly in IE 6 (on another computer), so I changed some of the markup. I couldn't double-check this in IE6 as I don't currently have if on my computer. It's important that the page be rendered in quirks mode in IE 6 which is why the xml declaration is used at the top of the page. In addition, I added in the #top-inner and #bottom-inner divs and removed the #wrap div. The bellow code is the top and bottom parts, but jumps over the main content.

<?xml version="1.0" encoding="iso-8859-1"?>
<!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" xml:lang="en" lang="en">
<head>
<title>Names of the Roberson Family</title>
<meta name="DESCRIPTION" content="Alphabetical list of surnames on the Roberson family genealogy site." />
<meta name="keywords" content="ancestory, family tree,Roberson Family" />
<link rel="stylesheet" href="/style/genealogy.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="Bill Roberson" />
<meta name="contact" content="webmaster@roberson-family.com" />
<link rel="shortcut icon" href="http://www.roberson-family.com/img/favicon.ico" type="image/x-icon" />
<link rel="icon" type="image/ico" href="/img/favicon.ico" />
<!-- force quirks mode with the xml prolgoue -->
<style type="text/css">
/* commented backslash hack v2 \*/
html, body {
height:100%;
}
/* end hack */
html, body {
margin:0;
padding:0;
}
#top {
position:fixed;
top:0;
left:0;
z-index:999;
height:180px;
width:100%;
text-align:center;
}
* html #top {
position:absolute;
}
#top-inner {
height:180px;
background-image:url('/img/gen/niceblue.gif');
}
* html #top-inner {
margin-right:17px;/* for scrollbar*/
}
* html body {
padding-top:180px;
}
* html, * html body {
overflow-y: hidden;
height:100%;
margin-top:-180px;
}
#middle {
position:relative;
z-index:2;
padding-top:180px;
padding-bottom:80px;
width:770px;
margin-left:auto;
margin-right:auto;
}
* html #middle {
height:100%;
width:770px;
margin-left:auto;
margin-right:auto;
overflow:auto;
overflow-y:scroll;
position:relative;
z-index:2;
padding-top:180px;
padding-bottom:80px;
}
#bottom {
position:fixed;
bottom:0;
left:0;
z-index:999;
width:100%;
height:80px;
}
* html #bottom {
position:absolute;
}
#bottom-inner {
height:80px;
text-align:center;
background-image:url('/img/gen/niceblue.gif');
}
* html #bottom-inner {
margin-right:17px;/* for scrollbar*/
}
#alpha {
width:720px;
text-align:center;
}
table.name {
width:720px;
padding:0;
margin:0;
text-align:left;
}
#alpha td {
/*width:230px;*/
padding:0;
margin:0;
white-space: nowrap;
}
#alpha tr {
/*width:710px;*/
text-align:left;
padding:0;
margin:0;
}
th.names {
background-color:transparent;
color:black;
text-align:left;
width:240px;
padding:0;
margin:0;
}
td.surname {
font-weight:bold;
width:33%;
}
#alpha td.person {
width:33%;
font-size:medium;
text-align:left;
padding-left: 10px;
}
h3 {
margin-top:0;
padding-top:0;
margin-bottom:0;
}
p.alphalink {
margin-top:0;
padding-top:0;
font-size:medium;
margin-bottom:0;
}
table.test01 {
width:770px;
margin-left:auto;
margin-right:auto;
}
</style>
</head>
<body>
<div id="top">
<div id="top-inner">
<div id="mast">
<a href="http://www.roberson-family.com"><img src="/img/family4.png" width="200" height="50" alt="Roberson Family" title="Roberson Family" /></a><br />GENEALOGY
</div><!-- close mast div -->
<h3>Name List</h3>
<p class="alphalink"><a href="#aa">No Surname</a>, A, <a href="#b">B</a>, <a href="#c">C</a>, <a href="#d">D</a>, E, F, <a href="#g">G</a>, <a href="#h">H</a>, I, <a href="#j">J</a>, <a href="#k">K</a>, <a href="#l">L</a>, <a href="#m">M</a>, N, O, P, Q, <a href="#r">R</a>, <a href="#s">S</a>, <a href="#t">T</a>, U, <a href="#v">V</a>, W, X, Y, Z, </p>
<table class="test01" style="text-align:center;">
<tr>
<td width="*">&nbsp;</td>
<th class="names"><h2>Name</h2></th>
<th class="names"><h2>Born</h2></th>
<th class="names"><h2>Died</h2></th>
<td width="*">&nbsp;</td>
</tr>
</table>
</div><!-- close top-inner div -->
</div><!-- close the fixed top div -->
<div id="middle">
<div id="namedisplay">
<div id="alpha">
<table ...

... </table>
</div><!-- close alpha div -->
</div><!-- close namedisplay div -->
</div><!-- close the scrolling middle div -->
<div id="bottom">
<div id="bottom-inner">
<div id="footer">
<p><a href="/genealogy/g_index.php" target="_top">Table of Contents</a> | <a href="/genealogy/surnames.php" target="_top">Surnames</a> | <a href="/genealogy/names_frame.php" target="_top">Name List</a></p>
<p class="xxs">This Website was Created Jul 12, 2008 with <a href="http://www.coffeecup.com/html-editor/" target="_top">HTML Editor 2008</a> from <a href="http://www.coffeecup.com" target="_top">CoffeeCup Software</a></p>
</div><!-- close footer div -->
</div><!-- close bottom-inner div -->
</div><!-- close the fixed bottom div -->
</body>
</html>

The #mast rule is the only rule in the external css file that I changed:

#mast {
text-align:center;
vertical-align:middle;
margin-bottom: 0;
font-size: x-large;
font-weight: bold;
padding-top: 10px;
}

I'm not sure if any of this will help with the link problem you experienced. All the links seemed to be working for me with exception of a quirk in Firefox where the links become unselectable a little bit before they pass beneath the #top.

EDIT: for testing purposes I changed the root-relative paths to page-relative. I just changed them back.
User 355448 Photo


Ambassador
3,144 posts

Cary,

Yes, the only link that was working properly when I posted the message was the one I had fixed to test the page. I have now fixed all the links.

I now have a small javascript that will allow me to adjust the positioning of the text by setting the number of pixels I want. I will be adding that after I get the code adjusted for proper display.

When it was time for bed last night, I noticed that FF3 and FF2 displayed differently. I haven't looked at the code you posted, but I will look at it today after I get my school homework done.

Thank you very much for your help. I appreciate the learning experience and knowledge gained from others here in CoffeeCup land.
User 463058 Photo


Ambassador
1,075 posts

Bill,

I've made a few more changes. The scrollbar was messed up in IE 6, so I changed some of the following code.

In the style sheet:
#mast {
text-align:center;
vertical-align:middle;
margin-bottom: 0;
font-size: x-large;
font-weight: bold;
}

In the html:
<style type="text/css">
/* commented backslash hack v2 \*/
html, body {
height:100%;
}
/* end hack */
html, body {
margin:0;
padding:0;
}
#top {
position:fixed;
top:0;
left:0;
z-index:999;
height:180px;
width:100%;
text-align:center;
}
* html #top {
position:absolute;
}
#top-inner {
height:180px;
background-image:url('../img/gen/niceblue.gif');
}
* html #top-inner {
margin-right:17px;/* for scrollbar*/
}
* html body {
padding-top:180px;
}
* html, * html body {
overflow-y: hidden;
height:100%;
margin-top:-180px;
}
#middle {
position:relative;
z-index:2;
padding-top:180px;
padding-bottom:80px;
width:100%;
}
* html #middle {
height:100%;
width:100%;
margin-left:auto;
margin-right:auto;
overflow:auto;
overflow-y:scroll;
position:relative;
z-index:2;
padding-top:180px;
padding-bottom:80px;
}
#bottom {
position:fixed;
bottom:0;
left:0;
z-index:999;
width:100%;
height:80px;
}
* html #bottom {
position:absolute;
}
#bottom-inner {
height:80px;
text-align:center;
background-image:url('../img/gen/niceblue.gif');
}
* html #bottom-inner {
margin-right:17px;/* for scrollbar*/
}
#alpha {
width:720px;
text-align:center;
margin-left: auto;
margin-right: auto;
}
...
...

This has been tested with IE 6 and 7, FF 2 and 3, Opera 9 and Safari for Windows.
User 355448 Photo


Ambassador
3,144 posts

Cary,

I just reached the end of my endurance with homework. I will have to pick up tomorrow evening when I get home with a semi-fresh mind and finish things for class Tuesday night. This class has just started, and already I am stressing over the papers I need to write.

Now I can get on to something that I like (html).

I just checked the test page you put up and will see if I can some javascript that I found to work and adjust the anchor position down.

Thanks for you assistance.
User 456980 Photo


Registered User
81 posts

Adam R. wrote:
I think this is a good representation of many designers.
http://www.coffeecuphelp.com/adam/images/designchart.jpg

sorry to interrupt, but, adam, that is the funniest thing I have seen in a long time!!!!
I work on my computer mainly for the purpose of working on my computer.
User 355448 Photo


Ambassador
3,144 posts

MK,

Please don't do that. Adam might start thinking he can make it as a comedian. We wouldn't want to loose his expertise here.

;)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.