Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
craigshaw #1
Gap between divs?!?!
Hi there.
I have just started learning about CSS and I have started to make a site, but
I have a problem with a gap in between my banner and content div.
The code I have used is below:
CSS File
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
margin: 0px;
}#wrapper {
background-color: #CCCCCC;
width: 760px;
}
#top {
background-color: #333333;
height: 100px;
}
#content {
background-color: #FF0000;
margin: 0px;
padding: 0px;
}
and for the index 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=iso-8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title></title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!--
TemplateEndEditable -->
<link href="../includes/twcss.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="top"></div>
<div id="content"><p>test</p></div>
</div>
</body>
</html>
If you go to [url]http://www.total-wrestling.co.uk/new/main/index.php[/url], you can see
how it is displayed.
Any help on this would be great.
Thanks,
Craig
craigshaw Guest
-
css divs
i've got two scrolling divs on my site and i want to be able to edit both divs in contribute, but when i hit "edit page," i can only edit one of the... -
DIVs and UL
Hi all. I was curious if anyone has had any luck in having Contribute add a DIV by the user that the user can then style to have a certain look/feel... -
flashpaper and divs
I'm having a really hard time trying to use Javascript to resize, set style.display to 'none', etc. I found a livedoc that mentioned that this may... -
CSS & Divs
My page contains 2 Div's - one inside the other. (Menu Div is contained inside wrapper div) #wrapper { width: 770px; margin: 0px auto; border:... -
collapsing divs
Is there any way to stop a div tag collapsing under certain circumstances? It seems as if an outer div will happily expand itself an inner one, but... -
craigshaw #2
Re: Gap between divs?!?!
Anyone got any idea what is wrong as I could do with knowing what to do to solve it?
Any help much appreciated.
Thanks in advance,
Craig
craigshaw Guest
-
mzanime.com #3
Re: Gap between divs?!?!
craigshaw wrote:
Things like this will often happen. But anyway, I'm not sure which gap you> I have just started learning about CSS and I have started to make a site
speak of, what browser are you viewing the page in?
Mihgt want to change this: <div id="top"></div> to this <div
id="top"> </div> and see if that helps.
mzanime.com Guest



Reply With Quote

