|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
website help!
hi ive been trying to get a spacing between two div tags to go away, i haven't been successful
please help if you canhtml : <div id="wholesite"> <div id="mainbar"> <div id="gmlogo" onclick="location.href='http://www.gmcanada.com';" style="cursor ointer;"></div> <div id="topbar"> <img src="sr2.jpg" border="0"> </div> <div id="topright" onclick="location.href='index.php';" style="cursor ointer;"> <div id="logoname"> </div> <div id="logo1" > </div> </div> </div> <div id="menubar"> <div id="gmlogobottom" onclick="location.href='http://www.gmcanada.com/';" style="cursor ointer;"></div> <div id="flashmenu"> </div> <div id="bottomleftpipe"> </div> </div> CSS: * { margin:0; padding:0; } a:link { text-decoration: none; } a:visited { text-decoration: none; color: #FF9900; } a:hover { text-decoration: underline; color: #666666; } a:active { text-decoration: underline; color: #666666; } #wholesite { height: 100%; width: 100%; background-color:#000563; margin:0; } #menubar { height: 100%; width: 25%; background-image:url('stretchl.gif'); background-repeat:repeat-y; margin:0; } #mainbar { background-image:url('stretcht.gif'); background-repeat:repeat-x; width: 100%; float:left; margin:0; } #gmlogo { background-image:url('sr1_1.jpg'); background-repeat:no-repeat; width: 118px; height: 108px; float:left; display: block; padding: 0; margin: 0; border: 0; } #topbar { background-image:url('sr2.jpg'); background-repeat:no-repeat; float:left; margin:0; } #topright { width: 343px; height: 108px; float:right; margin:0; } #logoname { background-image:url('sr3.jpg'); width: 158px; height: 108px; float:left; } #logo1 { background-image:url('logo1.jpg'); width: 185px; height: 108px; float:right; margin:0; } #gmlogobottom { background-image:url('sr1_2.jpg'); background-repeat:no-repeat; width:118px; height:66px; display: block; padding: 0; margin: 0; border: 0; } Thanks a lot |
|
#2
|
|||
|
|||
|
Re: website help!
Code:
<div id="wholesite">
<div id="mainbar">
<div id="gmlogo" onclick="location.href='http://www.gmcanada.com';" style="cursorointer;">
</div>
<div id="topbar">
<img src="sr2.jpg" border="0">
</div>
<div id="topright" onclick="location.href='index.php';" style="cursorointer;">
<div id="logoname">
</div>
<div id="logo1" >
</div>
</div>
</div>
<div id="menubar">
<div id="gmlogobottom" onclick="location.href='http://www.gmcanada.com/';" style="cursorointer;">
</div>
<div id="flashmenu">
</div>
<div id="bottomleftpipe">
</div>
</div>
CSS: * {
margin:0; padding:0;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FF9900;
}
a:hover {
text-decoration: underline;
color: #666666;
}
a:active {
text-decoration: underline;
color: #666666;
}
#wholesite {
height: 100%;
width: 100%;
background-color:#000563;
margin:0;
}
#menubar {
height: 100%;
width: 25%;
background-image:url('stretchl.gif');
background-repeat:repeat-y;
margin:0;
}
#mainbar {
background-image:url('stretcht.gif');
background-repeat:repeat-x;
width: 100%;
float:left;
margin:0;
}
#gmlogo {
background-image:url('sr1_1.jpg');
background-repeat:no-repeat;
width: 118px;
height: 108px;
float:left;
display: block;
padding: 0;
margin: 0;
border: 0;
}
#topbar {
background-image:url('sr2.jpg');
background-repeat:no-repeat;
float:left;
margin:0;
}
#topright {
width: 343px;
height: 108px;
float:right;
margin:0;
}
#logoname {
background-image:url('sr3.jpg');
width: 158px;
height: 108px;
float:left;
}
#logo1 {
background-image:url('logo1.jpg');
width: 185px;
height: 108px;
float:right;
margin:0;
}
#gmlogobottom {
background-image:url('sr1_2.jpg');
background-repeat:no-repeat;
width:118px;
height:66px;
display: block;
padding: 0;
margin: 0;
border: 0;
}
|
|
#3
|
|||
|
|||
|
Re: website help!
Is it bad in all browsers? I can't see the DOC TYPE. Hard to replicate without it.
|
|
#4
|
||||
|
||||
|
Re: website help!
Quote:
|
|
#5
|
|||
|
|||
|
Re: website help!
thanks ill try that, the website is http://www.sabrerobotics.com
its the gm logo on the top left side of the page |
|
#6
|
|||
|
|||
|
Re: website help!
Hi,
First thing to do is to correct the code. Run the url through the validator at W3C http://validator.w3.org/ I get 18 serious errors. Most will be resolved when you add the missing DOC TYPE. One of the issues is that without a DOC TYPE it throws the browser into quirks mode, so it does not understand how to interrupt the code. Are you hand coding or using a WYSIWYG program? |
|
#7
|
|||
|
|||
|
Re: website help!
i'm hand coding it, thanks ill look at the errors
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Website award help | eternalearth888 | Website Design/Showcase | 11 | 21-02-2009 11:03 |
| Website Help | Elvenage | Website Design/Showcase | 0 | 06-02-2009 16:45 |
| Website Help! | nnfuller | Website Design/Showcase | 7 | 18-01-2009 18:48 |
| Website Help | Dan50 | IT / Communications | 3 | 25-01-2006 07:00 |
| Website help | batter10456 | CD Forum Support | 9 | 19-02-2002 23:04 |