Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
rendering a bordered box in center of screen
Old 05-24-2010, 11:02 AM rendering a bordered box in center of screen
Novice Talker

Posts: 14
Name: Steve
Trades: 0
Hi

I have a background image which is centered in the middle of the screen.

I require to render a bordered box on top of this image which is also centered.

margin-left : au to and margin-right:au to seem to work fine but i cant seem to get anything working on the vertical

How do i do this please

any help would really help as been trying all day to get to work and now pulling hair out.

Last edited by don1967; 05-24-2010 at 11:41 AM..
don1967 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-24-2010, 01:55 PM Re: rendering a bordered box in center of screen
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Read the stickies - there is a topic there on centering - horizontal AND vertical
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-24-2010, 04:21 PM Re: rendering a bordered box in center of screen
Novice Talker

Posts: 14
Name: Steve
Trades: 0
errr thnx. am bit new here though n to all this. where are the stickies on this.????
don1967 is offline
Reply With Quote
View Public Profile
 
Old 05-24-2010, 04:23 PM Re: rendering a bordered box in center of screen
Novice Talker

Posts: 14
Name: Steve
Trades: 0
ah gotem thnx
don1967 is offline
Reply With Quote
View Public Profile
 
Old 05-24-2010, 04:42 PM Re: rendering a bordered box in center of screen
Novice Talker

Posts: 14
Name: Steve
Trades: 0
Hi Lady n red could you help me a little further im well confused.

im looking at you css

Code:
#horizon {
	background-color: transparent;
	position: absolute;
	top: 50%;
	left: 0px;
	width: 100%;
	margin-top: -200px;
	text-align: center;
	min-width: 900px; 
}
#wrapper {
	background-color: #fff;
	position: relative;
	text-align: left;
	width: 900px;
	height: 380px;
	margin: 0px auto;
	}
But cant understand how to implement given that i want to center a image both vertically and horiontaly
thats 1010px x 639px. I basically want to then add a imagemap (which i can do) so if the user expands or decreases screen everything stays in place.

any help would be much appreciated.
don1967 is offline
Reply With Quote
View Public Profile
 
Old 05-24-2010, 04:55 PM Re: rendering a bordered box in center of screen
Novice Talker

Posts: 14
Name: Steve
Trades: 0
actually i could probably better explain what im trying to do

i have a image that is 1010px x 639px which i require to vertically and horizontally align... my problem is that positioned over that image there are 2 buttons. I must either have the image centered and use imagemaps or lay the buttons on top of the image one way or another. In anycase what ever i try i lose either the centering of image of alignment of the image.

the user must be able to cntrl + and - the screen.

heres kinda what i want to do http://www.thebigshot.co.uk/v2/splash-new3.htm
but it isnt center aligned

cheers

Last edited by don1967; 05-24-2010 at 04:56 PM..
don1967 is offline
Reply With Quote
View Public Profile
 
Old 05-24-2010, 05:09 PM Re: rendering a bordered box in center of screen
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Put the images as background to the body.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-24-2010, 05:13 PM Re: rendering a bordered box in center of screen
Novice Talker

Posts: 14
Name: Steve
Trades: 0
Yes thats easiest way to get the centering but as soon as i do that though how do i position the buttons which must stay in position if the user cntrl + or cntrl - or f11
don1967 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to rendering a bordered box in center of screen
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35776 seconds with 12 queries