473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Center Web Page Not Working

I am trying to have a web page that is within a table and get's
centered horizontally as the browser expands. Look at the
following...

http://netmation.com/indexcenter.htm

In IE 7 both the JPG and text do not center as the browser expands.
In Firefox 3.01 only the text centers as the browser expands. What is
the best way to do this so it will work with all browsers. What am I
missing?

Thanks.
Jul 23 '08 #1
3 1638
Albert wrote:
I am trying to have a web page that is within a table and get's
centered horizontally as the browser expands. Look at the
following...

http://netmation.com/indexcenter.htm

This is SO the wrong way to do this!

You need to find a good tutorial on cascading style sheets. What you
have isn't fixable. You need to learn how to do this right, toss out
what you have, and start over from scratch.

Giving you code that works isn't going to help you. You need to learn
CSS before any answer we try to give you will make sense.
Jul 23 '08 #2
Scott Bryce wrote:
Albert wrote:
>I am trying to have a web page that is within a table and get's
centered horizontally as the browser expands. Look at the
following...

http://netmation.com/indexcenter.htm


This is SO the wrong way to do this!

You need to find a good tutorial on cascading style sheets. What you
have isn't fixable. You need to learn how to do this right, toss out
what you have, and start over from scratch.

Giving you code that works isn't going to help you. You need to learn
CSS before any answer we try to give you will make sense.
Having taken another look at your page, I am going to make another
suggestion. Find a good HTML tutorial. Even the wrong way you tried to
do this was done wrong.

Seriously. You need to learn HTML and CSS and try again.
Jul 23 '08 #3
In article
<40**********************************@t12g2000prg. googlegroups.com>,
Albert <al****@netmation.comwrote:
I am trying to have a web page that is within a table and get's
centered horizontally as the browser expands. Look at the
following...

http://netmation.com/indexcenter.htm

In IE 7 both the JPG and text do not center as the browser expands.
In Firefox 3.01 only the text centers as the browser expands. What is
the best way to do this so it will work with all browsers. What am I
missing?
This might help you:

<http://netweaver.com.au/centring/>

--
dorayme
Jul 23 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tony Vasquez | last post by:
Can somoene give me an example of how to center a div, according to it's image size... I am using different images, and so I have to resize it in a functino according to the image's size. So I use...
2
by: googley | last post by:
I'm starting a new thread for a problem that I ran into.. I'm trying to use STYLE SHEETS/CSS to update multiple table widths across many pages. I did get it working with one small problem that...
6
by: Franco Lombardo | last post by:
Hi all, I'm running DB2 8.1.5 on Windows 2000 professional SP4. When I try to start Control Center, I see the splash screen for a while, then it closes and nothing else happens. It happens...
7
by: ALI-R | last post by:
Hi All, I have two user controls (header and footer) ,,which I've placed in an HTML Table in a page.I set the **align="center"** in the table and the table still is on the left side of the page...
19
roula
by: roula | last post by:
I HATE DIVS AND DIFFERENT BROWSERS!!! i spent the whole day and night searching for a way to center align stupid divs, the problem is that the code is so sensitive, i lost my mind trying to make them...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.