Hi, I seem to have a problem regarding the positioning of the heading in my local server web pages.
The following is the problem:
http://i622.photobucket.com/albums/tt301/kidown/HomeScreen.jpg
here is the code I currently have.
at site.master page
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="Project_Thesis.SiteMaster" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<%-- <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />--%>
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
</asp:ContentPlaceHolder>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Project Thesis V2.0</title>
<meta name="Carlos Buhagiar" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="header">
<h1><a href="#">Project Thesis 2.0</a></h1>
<h2>By Carlos Buhagiar</h2>
</div>
<div id="menu">
<ul>
<li><a href="Home.aspx">Home</a></li>
<li><a href="Results.aspx">Search</a></li>
<li><a href="Results.aspx">Current Book Database</a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul>
</div>
<hr />
<div style="clear: both;"> </div>
<hr />
<div class="main">
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
</div>
<div class="clear">
</div>
<div id="footer">
<p>(c) 2014 Project V2.0.</p>
<p>Design and Source from <a href="http://www.freecsstemplates.org/" rel="nofollow">FreeCSSTemplates.org</a></p>
</div>
</body>
</html>
at the home.aspx page
<%@ Page Title="Home" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="Home.aspx.cs" Inherits="Project_Thesis._Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<div id="home">
<div id="content">
<div class="post">
<h2 class="title"><a>Introduction Project V2.0</a></h2>
<div class="entry">
<p>Welcome to my Book Search Project V2.0</p>
<p>In order to search a book click on 'Search' at the top of the screen.</p>
<p>Enjoy and Happy Searching! :)</p>
</div>
</div>
</div>
</div>
</asp:Content>
When I try to move the location of stuff using the design view it does not let me. Only 1 thing in each line, cant even do spaces in the same line which is strange.
Also sometimes I get the error with direct browsing not enabled. any ideas on how to enable it?
here is the style CSS of the template:
1
6
7 * {
8 margin: 0;
9 padding: 0;
10 }
11
12 body {
13 background: #000000 url(images/img01.gif) repeat-x;
14 font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
15 font-size: 13px;
16 color: #999999;
17 }
18
19 h1, h2, h3 {
20 }
21
22 h1 {
23 font-size: 3em;
24 }
25
26 h2 {
27 letter-spacing: -1px;
28 font-size: 2em;
29 }
30
31 h3 {
32 font-size: 1em;
33 }
34
35 p, ul, ol {
36 margin-top: 1.8em;
37 line-height: 180%;
38 }
39
40 ul, ol {
41 margin-left: 3em;
42 }
43
44 blockquote {
45 margin-left: 3em;
46 margin-right: 3em;
47 }
48
49 a {
50 color: #CCCCCC;
51 }
52
53 a:hover {
54 text-decoration: none;
55 color: #FFFFFF;
56 }
57
58 hr {
59 display: none;
60 }
61
62
63
64 #header {
65 width: 960px;
66 height: 80px;
67 margin: 0 auto;
68 background: url(images/img02.jpg);
69 }
70
71 #header h1, #header h2 {
72 float: left;
73 margin: 0;
74 text-transform: uppercase;
75 color: #FFFFFF;
76 }
77
78 #header h1 {
79 padding: 30px 0 0 20px;
80 font-size: 3em;
81 }
82
83 #header h2 {
84 padding: 47px 0 0 8px;
85 font-size: 1.8em;
86 font-style: italic;
87 }
88
89 #header a {
90 text-decoration: none;
91 color: #FFFFFF;
92 }
93
94
95
96 #menu {
97 width: 960px;
98 height: 51px;
99 margin: 0 auto;
100 background: url(images/img03.jpg);
101 }
102
103 #menu ul {
104 margin: 0;
105 padding: 0;
106 list-style: none;
107 line-height: normal;
108 }
109
110 #menu li {
111 float: left;
112 padding: 12px 10px 0 20px;
113 }
114
115 #menu a {
116 text-decoration: none;
117 letter-spacing: -1px;
118 font-size: 1.2em;
119 font-weight: bold;
120 }
121
122 #menu a:hover {
123 text-decoration: underline;
124 }
125
126
127
128 #page {
129 width: 920px;
130 margin: 0 auto;
131 padding: 30px 20px 20px 20px;
132 background: url(images/img04.jpg) no-repeat;
133 }
134
135
136
137 #content {
138 float: left;
139 width: 605px;
140 }
141
142 .post {
143 margin-bottom: 40px;
144 }
145
146 .post .title {
147 border-bottom: 1px solid #454545;
148 }
149
150 .post .title a {
151 text-decoration: none;
152 }
153
154 .post .entry {
155 padding: 0 20px;
156 }
157
158 .post .meta {
159 height: 20px;
160 padding: 15px 20px;
161 background: url(images/img05.gif) no-repeat;
162 line-height: normal;
163 }
164
165 .post .meta a {
166 text-decoration: none;
167 font-weight: bold;
168 }
169
170 .post .meta a:hover {
171 text-decoration: underline;
172 }
173
174 .post .meta .byline {
175 float: left;
176 }
177
178 .post .meta .comments {
179 float: right;
180 }
181
182
183
184 #sidebar {
185 float: right;
186 width: 295px;
187 }
188
189 #sidebar ul {
190 margin: 0;
191 padding: 0;
192 list-style: none;
193 }
194
195 #sidebar li {
196 }
197
198 #sidebar li ul {
199 padding: 0 0 20px 20px;
200 list-style: square inside;
201 }
202
203 #sidebar h2 {
204 height: 50px;
205 padding: 13px 20px 0 20px;
206 background: url(images/img06.gif) no-repeat;
207 font-size: 1.6em;
208 }
209
210
211
212 #search {
213 padding: 20px;
214 text-align: center;
215 }
216
217 #search input {
218 margin-bottom: 10px;
219 padding: 3px 5px;
220 background: #1F1F1F url(images/img06.gif) no-repeat center center;
221 border: 1px solid #454545;
222 font: bold 1.2em "Trebuchet MS", Arial, Helvetica, sans-serif;
223 color: #FFFFFF;
224 }
225
226 #search #s {
227 width: 80%;
228 background: #1F1F1F;
229 }
230
231
232
233 #calendar {
234 padding-bottom: 20px;
235 }
236
237 #calendar table, #calendar caption {
238 width: 80%;
239 margin: 0 auto;
240 text-align: center;
241 }
242
243 #calendar caption {
244 text-transform: uppercase;
245 letter-spacing: .25em;
246 font-weight: bold;
247 }
248
249 #calendar thead th {
250 background: #333333;
251 }
252
253 #calendar tbody td {
254 background: #111111;
255 }
256
257 #calendar a {
258 text-decoration: none;
259 font-weight: bold;
260 }
261
262 #calendar a:hover {
263 text-decoration: underline;
264 }
265
266
267
268 #footer {
269 width: 960px;
270 margin: 0 auto;
271 padding: 20px 0;
272 background: url(images/img07.gif) no-repeat;
273 }
274
275 #footer p {
276 margin: 0;
277 line-height: normal;
278 text-align: center;
279 }
I found another CSS called site.css, here are the contents
body
{
background: #b6b7bc;
font-size: .80em;
font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
margin: 0px;
padding: 0px;
color: #696969;
}
a:link, a:visited
{
color: #034af3;
}
a:hover
{
color: #1d60ff;
text-decoration: none;
}
a:active
{
color: #034af3;
}
p
{
margin-bottom: 10px;
line-height: 1.6em;
}
h1, h2, h3, h4, h5, h6
{
font-size: 1.5em;
color: #666666;
font-variant: small-caps;
text-transform: none;
font-weight: 200;
margin-bottom: 0px;
}
h1
{
font-size: 1.6em;
padding-bottom: 0px;
margin-bottom: 0px;
}
h2
{
font-size: 1.5em;
font-weight: 600;
}
h3
{
font-size: 1.2em;
}
h4
{
font-size: 1.1em;
}
h5, h6
{
font-size: 1em;
}
.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
{
margin-top: 0px;
}
.page
{
width: 960px;
background-color: #fff;
margin: 20px auto 0px auto;
border: 1px solid #496077;
}
.header
{
position: relative;
margin: 0px;
padding: 0px;
background: #4b6c9e;
width: 100%;
}
.header h1
{
font-weight: 700;
margin: 0px;
padding: 0px 0px 0px 20px;
color: #f9f9f9;
border: none;
line-height: 2em;
font-size: 2em;
}
.main
{
padding: 0px 12px;
margin: 12px 8px 8px 8px;
min-height: 420px;
}
.leftCol
{
padding: 6px 0px;
margin: 12px 8px 8px 8px;
width: 200px;
min-height: 200px;
}
.footer
{
color: #4e5766;
padding: 8px 0px 0px 0px;
margin: 0px auto;
text-align: center;
line-height: normal;
}
div.hideSkiplink
{
background-color:#3a4f63;
width:100%;
}
div.menu
{
padding: 4px 0px 4px 8px;
}
div.menu ul
{
list-style: none;
margin: 0px;
padding: 0px;
width: auto;
}
div.menu ul li a, div.menu ul li a:visited
{
background-color: #465c71;
border: 1px #4e667d solid;
color: #dde4ec;
display: block;
line-height: 1.35em;
padding: 4px 20px;
text-decoration: none;
white-space: nowrap;
}
div.menu ul li a:hover
{
background-color: #bfcbd6;
color: #465c71;
text-decoration: none;
}
div.menu ul li a:active
{
background-color: #465c71;
color: #cfdbe6;
text-decoration: none;
}
fieldset
{
margin: 1em 0px;
padding: 1em;
border: 1px solid #ccc;
}
fieldset p
{
margin: 2px 12px 10px 10px;
}
fieldset.login label, fieldset.register label, fieldset.changePassword label
{
display: block;
}
fieldset label.inline
{
display: inline;
}
legend
{
font-size: 1.1em;
font-weight: 600;
padding: 2px 4px 8px 4px;
}
input.textEntry
{
width: 320px;
border: 1px solid #ccc;
}
input.passwordEntry
{
width: 320px;
border: 1px solid #ccc;
}
div.accountInfo
{
width: 42%;
}
.clear
{
clear: both;
}
.title
{
display: block;
float: left;
text-align: left;
width: auto;
}
.loginDisplay
{
font-size: 1.1em;
display: block;
text-align: right;
padding: 10px;
color: White;
}
.loginDisplay a:link
{
color: white;
}
.loginDisplay a:visited
{
color: white;
}
.loginDisplay a:hover
{
color: white;
}
.failureNotification
{
font-size: 1.2em;
color: Red;
}
.bold
{
font-weight: bold;
}
.submitButton
{
text-align: right;
padding-right: 10px;
}
Thanks!!