Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > align center qestion

Reply
Thread Tools

align center qestion

 
 
the idiot
Guest
Posts: n/a
 
      05-06-2005
i hope this isnt too stupid a question but how would i align this to the
center?

cheers.





<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title></title>
</head>

<body style="margin:0px;padding:0px;">







<div style="width:750px;height:60px;background:#45ff78; ">Logo and
banner</div>
<div style="width:750px;height:20px;background:#ffffff; ">Horizontal
menu</div>
<div
style="position:absolute;left:0px;top:80px;width:2 00px;height:100px;backgrou
nd:#ff9900;">1st column</div>
<div
style="position:absolute;left:200px;top:80px;width :550px;height:300px;backgr
ound:#dd6124;">2nd column</div>

</body>
</html>


 
Reply With Quote
 
 
 
 
Barbara de Zoete
Guest
Posts: n/a
 
      05-06-2005
On Fri, 6 May 2005 12:39:44 +0100, the idiot <(E-Mail Removed)>
wrote:

> i hope this isnt too stupid a question but how would i align this to the
> center?
>


Don't post code. Provide an example page on a temporary url.

Anyways:
1. Why make all styles inline? It is a horror (to me) to try and read it.
Better put it all together in a stylesheet.

2. If you set the fixed width (ugh yak) of 750px you've chosen to the
body, and add margin:0 auto; the body will center itself in the viewport
of a graphical browser.

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
 
Reply With Quote
 
 
 
 
the idiot
Guest
Posts: n/a
 
      05-06-2005

"Barbara de Zoete" <(E-Mail Removed)> wrote in message
newspsqcqvhawx5vgts@zoete_b...
> On Fri, 6 May 2005 12:39:44 +0100, the idiot <(E-Mail Removed)>
> wrote:
>
> > i hope this isnt too stupid a question but how would i align this to the
> > center?
> >

>
> Don't post code. Provide an example page on a temporary url.
>
> Anyways:
> 1. Why make all styles inline? It is a horror (to me) to try and read it.
> Better put it all together in a stylesheet.
>
> 2. If you set the fixed width (ugh yak) of 750px you've chosen to the
> body, and add margin:0 auto; the body will center itself in the viewport
> of a graphical browser.
>


i normally use css but i just found this bit of code (it was actually for a
four column 100% beast) and i was trying to mangle it to my needs - but alas
my head isnt working today...

thanks though


 
Reply With Quote
 
the idiot
Guest
Posts: n/a
 
      05-06-2005

"Barbara de Zoete" <(E-Mail Removed)> wrote in message
newspsqcqvhawx5vgts@zoete_b...
> On Fri, 6 May 2005 12:39:44 +0100, the idiot <(E-Mail Removed)>
> wrote:
>
> > i hope this isnt too stupid a question but how would i align this to the
> > center?
> >

>
> Don't post code. Provide an example page on a temporary url.
>
> Anyways:
> 1. Why make all styles inline? It is a horror (to me) to try and read it.
> Better put it all together in a stylesheet.
>
> 2. If you set the fixed width (ugh yak) of 750px you've chosen to the
> body, and add margin:0 auto; the body will center itself in the viewport
> of a graphical browser.
>

sorry here it is
http://www.207g.karoo.net/2%20column.html


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
qestion on combobox smart Java 1 03-17-2008 10:17 AM
a n00b regex qestion nuffnough@gmail.com Python 2 12-03-2007 09:39 PM
<div align=center> also affects align of dynamic dropdown item text Steve Richter ASP .Net 1 06-24-2007 07:11 PM
Qestion about convert Object to byte[] and convert it back davidxiongcn@gmail.com Java 5 11-04-2006 04:11 PM
Dumb, dumb dumb Qestion David Napierkowski Digital Photography 6 10-31-2004 11:14 PM



Advertisments