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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Unable to centre text layer
Old 08-17-2010, 08:41 PM Unable to centre text layer
Junior Talker

Posts: 2
Name: Russell
Location: Spain
Trades: 0
Hi there, Been a long time since i did any coding so thought id try and polish off some skills, but seem to of forgotten more than i thought, I made the template on photoshop, sliced the images up, added a layer using microsoft expression web so i could add my text, but no matter what i do I am unable to get my text layer to align with the images/background, on my main pc the text is off centre to the left, on my laptop, the right, on a friends, to the right also, it seems to change depending on the users screen resolution. Any help will be greatly appreciated, Link to problem ; http://www.random-servers.co.uk/sg/Home.html Problem Code ; <div id=&quot;layer1&quot; style=&quot;position: absolute; width: 789px; height: 544px; z-index: 1; left: 214px; top: 333px; right: 214px; bottom: 333px;&quot; align=&quot;center&quot; nowrap=&quot;nowrap&quot;>
underwoodr is offline
Reply With Quote
View Public Profile Visit underwoodr's homepage!
 
 
Register now for full access!
Old 08-18-2010, 12:24 AM Re: Unable to centre text layer
jyoz22's Avatar
Ultra Talker

Posts: 278
Location: Orlando, FL
Trades: 0
Your DIV has an "absolute" positioning. I would recommend you recreate the website without the absolute positioning.

But, if you wanna do a quick fix, make sure the div is aligned with the correct left: ##; value and ignore the right value, and also make sure the width of the div where the text is located matches that width of the background of the background.

I'm not sure if you understand what i'm trying to say. I would definitively look up the differences between "absolute" and "relative" positioning.
__________________
Jyoz
jyoz22 is offline
Reply With Quote
View Public Profile
 
Old 08-18-2010, 06:47 AM Re: Unable to centre text layer
Junior Talker

Posts: 2
Name: Russell
Location: Spain
Trades: 0
The width was the problem, Thanks for the help
underwoodr is offline
Reply With Quote
View Public Profile Visit underwoodr's homepage!
 
Reply     « Reply to Unable to centre text layer
 

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.94285 seconds with 12 queries