/    Sign up×
Community /Pin to ProfileBookmark

alternatice to absolute

i was wondering if there was an alternative to using absolute positioning because i’m making a page for my youth group but, i run my home computer at 1280 by 1024 and most of the people in my youth group are going to be running it on their default settings. Is there a way i can set up the site so that it works for everyone without running my computer on a really low res?

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@NogDogNov 18.2004 — I'm sure there's a way, but without knowing what sort of page layout you want, it's hard to get specific. It may be as simple as using percentages for positions instead of pixels.
Copy linkTweet thisAlerts:
@Ben_RogersNov 19.2004 — Do you know what reverse engineering is? <http://www.bluerobot.com/web/layouts/> Check some of those out. ?

EDIT - I sounded kinda rude, so... yeah.
Copy linkTweet thisAlerts:
@shadowsword232authorNov 19.2004 — as far as layout, i think what your asking is how is the page going to look. I have a banner running along the top, and running along the left hand side will be the link buttons. in the middle is gonna be some text and in some cases pictures
Copy linkTweet thisAlerts:
@NogDogNov 19.2004 — Here's an example of a semi-fluid layout I'm working on now for my personal site. The main text area in the middle is "fluid" while the navigation list on the left and the sidebar on the right have their widths set via em units, so they maintain their proportions if the user increases or decreases font size. (I still have work to do, including deciding on fonts and colors to use - I was just doing this as a proof of concept.) Hope it gives you some ideas:
<i>
</i>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html lang='en'&gt;
&lt;head&gt;
&lt;META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'&gt;
&lt;title&gt;Untitled&lt;/title&gt;
&lt;style type="text/css"&gt;
body {
margin: 0;
padding: 0;
font-family: verdana, arial, sans-serif;
}
.top {
background-color: teal;
color: white;
margin: 0;
padding: 0.5em 1em;
clear: both;
border-style: solid;
border-width: thin;
border-color: gray teal silver;
}
div.main {
margin: 0 14em 0 10em;
width: auto;
padding: 0 1em;
color: black;
overflow: scroll;
}
div.side {
float: right;
margin: 0;
padding: 1em;
width: 13em;
font-size: small;
color: teal;
}
p, li {
line-height: 1.3em;
}
ul.nav {
float: left;
margin: 0;
padding: 0;
list-style-type: none;
}
li.nav {
margin: 2px;
}
a.nav {
border-style: solid;
border-width: thin;
border-color: silver gray gray silver;
display: block;
margin: 0;
background-color: teal;
color: white;
font-weight: bold;
padding: 3px 1em;
width: 7em;
text-align: center;
text-decoration: none;
}
a.nav:hover {
color: aqua;
border-sytle: solid;
border-width: thin;
border-color: gray silver silver gray;
}
.subtitle {
font-size: medium;
margin-left: 2em;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=top&gt;
&lt;h1&gt;Charles W. Reace, Jr.
&lt;span class=subtitle&gt;Software Tester, Musician, and Gamer&lt;/span&gt;&lt;/h1&gt;
&lt;/div&gt;
&lt;ul class=nav&gt;
&lt;li class=nav&gt;&lt;a class=nav href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li class=nav&gt;&lt;a class=nav href="#"&gt;S/W Testing&lt;/a&gt;&lt;/li&gt;
&lt;li class=nav&gt;&lt;a class=nav href="#"&gt;Music&lt;/a&gt;&lt;/li&gt;
&lt;li class=nav&gt;&lt;a class=nav href="#"&gt;Gaming&lt;/a&gt;&lt;/li&gt;
&lt;li class=nav&gt;&lt;a class=nav href="#"&gt;Photos&lt;/a&gt;&lt;/li&gt;
&lt;li class=nav&gt;&lt;a class=nav href="#"&gt;Miscellaneous&lt;/a&gt;&lt;/li&gt;
&lt;li class=nav&gt;&lt;a class=nav href="#"&gt;Email Me&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=side&gt;
&lt;h3&gt;Lorem Ipsum&lt;/h3&gt;
&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum&lt;/p&gt;
&lt;/div&gt;
&lt;div class=main&gt;
&lt;h2&gt;Lorem Ipsum&lt;/h2&gt;
&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum&lt;/p&gt;
&lt;h2&gt;Lorem Ipsum&lt;/h2&gt;
&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum&lt;/p&gt;
&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum&lt;/p&gt;
&lt;/div&gt;
&lt;p class=top&gt;This is the footer&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@shadowsword232authorNov 20.2004 — thanx for the help
×

Success!

Help @shadowsword232 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.18,
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,
)...