/    Sign up×
Community /Pin to ProfileBookmark

div layout assist

I’m trying to transition from tables to div tags for a web site I manage. I’m using an old version of Dreamweaver to handle menus, but rolling my own divs for layout purposes. For some reason, I cannot seem to get a bulleted list (ul tag) to line up propery. See the test page at [URL=”http://myfranciscanknights.org/test/index3.html”]http://myfranciscanknights.org/test/index3.html[/URL] and take a look at how the list lines up with respect to the div on the left. Also, I’d like to have a uniform background to the div sidebar1, but am having problems getting that done.

I used internal styles in this page so you’ll be able to see everything at once. To see the original site, look at [URL=”http://myfranciscanknights.org/”]http://myfranciscanknights.org/[/URL].

Thanks for any hints. -Larry

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@absolutmgd13Jun 21.2012 — you're layout is a little odd.. i'd start with a basic layout and work from there.. something like this... (i set fixed heights just so you can see how it lays out, do with them what you will..)

[code=html]<!DOCTYPE html>
<html>
<head>
<title>Untitled Document</title>
<style>
#container{width:500px;height:800px;}
#header{width:500px;height:100px;margin-bottom:10px;}
#footer{width:500px;height:100px;}
#mid-wrap{width:500px;height:800px;margin-bottom:10px;}
#sidebar{float:left;width:150px;height:800px;margin-right:10px;}
#content{float:left;width:340px;height:800px;}
</style>
</head>
<body>
<div id="container">

<div id="header"></div>

<div id="mid-wrap">
<div id="sidebar"></div>
<div id="content"></div>
</div>

<div id="footer"></div>

</div>
</body>
</html>
[/code]
×

Success!

Help @biker21 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...