FORUMS: list search recent posts

center all help

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
center all help
on Oct 27, 2005 at 8:43:36 pm

I am a desinger who is just begging to learn HTML, I found this code for centering a page but I don't know where i should insert the code. below is a link to the page I am working on. And below that is the text file accompanying the code. i have the java file in the same directory as my HTML file. just don't know where to put the two lines of code. Also what name should I use for the
. can i assign a new name or do i use the name that image ready has assigned?

thanks for taking the time to read this and any help would be appreciated.


link to page:

text file for the center all:
Script Instructions - Center All

Setup Instructions:
Within the HTML of any page you want this script to run, add this line:

Place the above at the very end of your HTML file, just before
the tag. Note that this assumes that the JavaScript
file is in the same directory as your HTML file. If this is
not the case then change the src attribute in the usual fashion
(I assume you know how to do this, if not email me).

Now you need to decide which elements in your HTML you want to center.
For each one, you have to given them a unique ID value, like this:

blah blah

Then open up the JavaScript file, center_all.js. Notice that the
ID values of the three DIVs in my example are listed in the array
'objID'. Amend this array to name the ID values of the elements you have

Return to posts index

Bret Williams
Re: center all help
on Oct 28, 2005 at 4:05:36 am

I guess maybe I'm missing something but Curtis answered your question very simply, and I answered it in the DW forum. Brian also gave you a link to some code. Is that the code that you're trying to use? You have yet to reply or respond to anyone's suggestions and you keep starting new threads.

If you're a beginner, there's really no need to use any special java, or imageready. In your web application (or by hand if you know html well enough - I don't) simply open up the examples people have given you and reverse engineer it. It's the best way to learn. If you use DW or GoLive you should be able to open the pages in the app and see how the table was laid out to center the page.

Return to posts index

sorry for the confusion
on Oct 28, 2005 at 8:31:05 pm

Thanks to everyone that posted

I did get the Joe Tutorial to work. I posted twice because there were two solutions that I had found for this problem. Being that I am new to web coding I was not sure which of the two were more practical. As it runs out the java script was 4 years old.

Again, I was not trying to ruffle any feathers, and thanks to the posters.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved