473,320 Members | 1,887 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,320 software developers and data experts.

DIV tag centered on the screen

Hi All,

I am new to the world of advanced CSS & JS.

What I want is a simple DIV tag which should be 1024x720 size and always
remain centered in the browser window irrespective of browser size.

How can I do that?

TIA

Jul 8 '08 #1
1 1152
I posted n example to centre a label in a DVIV ages agowhihc should help
you. Take a look at this thread.

http://www.netnewsgroups.net/group/m...opic10946.aspx

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

"Sachin" <Sa******@Email.comwrote in message
news:D3**********************************@microsof t.com...
Hi All,

I am new to the world of advanced CSS & JS.

What I want is a simple DIV tag which should be 1024x720 size and always
remain centered in the browser window irrespective of browser size.

How can I do that?

TIA

Jul 8 '08 #2

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

Similar topics

5
by: Haines Brown | last post by:
I want a centered body, 680px wide, having a red bottom margin. The following works well in galeon, but not in IE5, where the bottom margin steals the full width of the viewpoint. That is, the red...
32
by: Jocab | last post by:
How can I center a page (that uses CSS) so that it has: - maximum width of 1024 - minimum width of 800 Therefore it should be a liquid design. I haven't found any way in doing this, not using...
4
by: metalseb | last post by:
Hi folks I built up a small website which is designed for 800x600 display. Runs just fine in this resolution but if you have a system in 1024 or 1280 pixels wide, the site just "sticks" in the...
8
by: Freek te Water | last post by:
Hi, Hope no-one is offended by my probably noob question... Context: I have a web page design, which always centres in the middle of the screen (using a 100%*100% HTML-table). Now I also use...
4
by: Mimo Zus | last post by:
I'm hoping that someone can explain what's going on; better yet provide a workaround. I'm designing a centered CSS site based on a 550 pixel wide vertical background image. Onto this background...
1
by: Roger | last post by:
Hi All, Does anyone know how to have a message box pop up in the center of the app and not the screen. Thanks in advance. Roger.
0
by: Harry Whitehouse | last post by:
I can center the print dialog on my parent window just fine. But how can I control the location of the status window that pops up during the actual page printing? My app is programmed to center...
1
by: Richard | last post by:
I have a table that is about 100 rows long and within that table I have tons of links. The table takes about 2 seconds to load. I think javascript might help somehow. The problem is that in...
9
by: alice | last post by:
I've been slowly learning CSS, but wanting to jump ahead and get a page to have 4 columns of text that are centered on the page, no matter how big the monitor/browser/window, I'd like each one to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.