margin값을 0을 넣었는데도 화면이 꽉차게 변경이 안되네요...
본문
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_THEME_PATH.'/head.php');
if(is_file(G5_PATH.'/main.php'))
{
include G5_PATH.'/main.php';
}else{
?>
<!DOCTYPE html>
<html lang="ko">
<head>
<title></title>
<link rel="stylesheet" href="/css/default.css" />
</head>
<body>
<style>
body {
width: 100%;
background-color: white;
}
img {
max-width: 100%;
display: block;
}
#container {
width: 100%;
margin-left: 0px;
}
</style>
<div id="container">
<div id="con_top">
<div class="con_main">
<img src="<? echo G5_THEME_IMG_URL?>/part01.png">
</div>
</div>
</div>
</body>
</html>
위에처럼 id=container로 감쌌는데 container의 margin값이 안사라지는데 왜그런가요???
답변 2
<style>
body { margin:0px }
정확한 문제는 모든 css 파일등을 확인해야 할수 있으나 저의 오랜 경험을 바탕으로 생각 하노라면
아마 또다른 include 된 파일내 body 적용이 중복 되어 졋을수 있습니다.