/    Sign up×
Community /Pin to ProfileBookmark

Total rewrite… I am confused…

Ok, so for the last 10 hours I have been playing with trying to convert my site from using a table structure to a CSS structure. I have gotten quite a ways, but I can’t figure out how to keep everything centered on screen no matter the size of the window, and how to get the main content area w/ copyright at the bottom. I am also not sure if all the margin stuff I have all over is necessary. Can someone help clear this up.

Site using tables is [url]www.blakestoltman.net[/url]

my new code thus far which is suppose to look identical is this, i do know most of my styles are in line. once I had it complete I planned to tear them out and put them in a normal CSS call.

<!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>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />

<title>BlakeStoltman.net: Alternative History, &amp; News</title>

<style type=”text/css”>
<!–
body {
background-color: #86AEF2;
}
a:link {
color: #000000;
}
a:visited {
color: #000000;
}
a:hover {
color: #000000;
}
a:active {
color: #000000;
}
mainlogo {

}
.style3 {font-size: 18px}
.style4 {font-size: 16px}
–>
</style>

</head>
<body>
<div id=”mainlogo” style=”position: absolute; margin-width: 200px; margin-right: 200px; background-color: #ACC8F6;”>
<img src=”images/towerlogo.png” width=”200″ alt=”” height=”335″ />
<div style=”margin-width: 200; margin-right: 200; background-color: #ACC8F6;”>
<img src=”images/topicbar.png” alt=”” width=”200″ height=”25″ />
</div>
<div id=”sidemenubar” style=”margin-width: 200; margin-top: 10; margin-right: 200; background-color: #ACC8F6;”>
<?php include(“sidemenu.php”); ?>
</div>
</div>
<div id=”banner” style=”position: absolute; left: 208px; background-color: #C8DAF9; background: url(/images/parchment.png);”>
<img src=”images/banner.gif” width=”600″ alt=”” height=”108″ border=”0″ usemap=”#navbar” />
</div>
<?php include(“topmenu.php”); ?>
</body>
</html>

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@ray326Oct 26.2007 — Normally you'd wrap everything in the page with a div having a width and margin:0 auto.
Copy linkTweet thisAlerts:
@WebJoelOct 26.2007 — Although cited as merely a 'warning', this (see screenshot) is potentially layout-busting... :o

And:<div id="sidemenubar" style="margin-width: [B]200[/B]; margin-top: [B]10[/B]; margin-right: [B]200[/B]; background-color: #ACC8F6;">[/QUOTE] For CSS (that includes [I]inline-style[/I]) you really should declare the unit-of-measure. I assume "px" here. ?

[upl-file uuid=bd783679-b128-48ee-8fa1-05744ec1af3a size=22kB]ScreenHunter_2.gif[/upl-file]
×

Success!

Help @BStoltman spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...