Internet Central James - What's In A Name James is Number One
SEO Business Search Engine Optimization SEO School What is SEO?
Internet Marketing Services Right Minded Marketing Internet Testing Sandbox Marketing Deja Vu Internet Vote Casting Websites & Marketing Marketing Online Marketing Paradox Personal Marketing
About Jim's Place Contact Jim
AMD Apple Blogger Blogs Business Capacitors Comcast Computers Consumer Dell Computers Email Information Firefox Godaddy Google
Hardware iMac G5 Talk Internet ISP Linux Marketing 101 Marketing Microsoft Miscellaneous Networking PC Security Software Websites Yahoo Z Secret Spot
iMac G5 Mother Boards DIY iMac G5 Power Supplies DIY iMac G5 Repairs Inside The Apple iMac iMac Second Monitor Backup Apple Hard Drive PDF Programs Free PowerBook G3 Linux Skitch Image Annotating Apple Safari iPhone Applications
Getting New IP Address Free Internet Security Internet Speed Test Networking Computers Comcast Modems Routers
Hard Drive Adapter Backup Software Now Spell Checkers Time Sync For PC Print Button Hide HTML JavaScript Free PDF Programs Recover Camera Images Import Export Blog Set Up PC Email Build Hi-End PC Swiss Army Knife SDD HD Floppy Drives Floppy Disk Drive Emulators

According to Jim

The Internet Place for a Wide Variety of Topics

Welcome to the online information zone. Topics of Marketing, Internet, Google, Apple, Advertising, Blogging, Computers, Hardware, Software, Hard Drives, Routers, and Networking to name a few.

Centered Internet Marketing Online With CSS

Special Website Projects Require Special CSS Programming

One would think it would be easy to center a single object like a picture or graphic image in the center of a web page using Cascading Style Sheets, CSS div tag and no tables. There are many ways of centering text or objects in a horizontal mode but not in both the vertical and horizontal modes at the same time, that works completely across most all brands of Web browsers.

I spent a couple of hours using the search engines for research on a special project that I thought would be easy. Finally after looking at maybe 50 websites and doing special searches I finally hit pay dirt.

For those of you that want to dig right in, here is the code I found from an old archive at www.WedDeveloper.com CSS – Vertical and Horizontal Centering.

I did a few modifications to the original html code in the header section

<style title="Default" media="screen" type="text/css">#center { width: 200px; height: 300px; position: absolute; top: 50%; left: 50%; margin: -150px auto auto -100px; border: 4px double black; background-color: white; text-align: center;}body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; background-image: url('your image');}#center p { margin-top: 2px; margin-bottom: 2px;}</style>

The div code in the body would look like this:

<div id="center">Professional Web Services</div>

Marketing Creativity Online

Meet Jim At Fridays

Internet Marketing Center

Here is a link to Jim Warholic, Centered Online Internet Marketing web page. Change the window size and notice the picture and text inside the predefined area, always remains centered in the middle of the browser window both horizontally and vertically.

Some of the CSS keys are: first define the box size in width and height measurements, then you position it absolute 50% from the top and 50% from the left, then you set your margins for the top, right, bottom, and left to be: top = -1/2 height, right = auto, bottom = auto, and left = -1/2 width.

Other CSS styles can be added for flavor.

Have fun.

Need help on the Web?

We will go out of our way to promote your company in creative marketing strategies and online advertising ways that will bring in new sales leads, generate website visitors, and turn those visitors into paying customers. Click here for the Top Secrets.

Our core Internet marketing services include:

Contact us today for services, strategies, and solutions for your B2B or B2C company.

Did you find this information helpful?
If you did, please consider donating to my tip jar. Thank you.

Your email address will not be published. Required fields are marked *

*

Spam protection by WP Captcha-Free

Strategic Sales Solutions

Here is why you should invest in Internet marketing and ethical SEO Services.
Do you want to increase your business sales volume?

Web Marketing

Get your business discovered online with Google Search and the marketing solution.

Get your website found on Google Search, Yahoo!, and Microsoft Bing Search too.

Professional Internet marketing services and ethical search engine optimization "SEO" services.