/    Sign up×
Community /Pin to ProfileBookmark

Centering an image

How do I centre this image which is in a lyteframe. The code for it is:

[CODE]<div style=”position: absolute; width: 100px; height: 100px; z-index: 1; left: 132px; top: 374px;” id=”layer1″>
<a href=”images/hastings_102622t.jpg” rel=”lyteframe” title=”Dr Billy Hastings founded Hastings Hotels in 1968 by with the purchase of the Stormont and Adair Arms Hotels. In 1971 he bought a group of six run-down railway hotels, but the troubles were at their height and very few tourists dared to venture to Northern Ireland. Many of the hotels were heavily bombed and destroyed. In fact the Slieve Donard hotel in Newcastle was at one point nicknamed the ‘Titanic’ as it was feared it would sink the whole group! Ironic really, as the Slieve is the only remaining hotel of the original six which operates as a hotel today, and it has recently undergone a huge expansion and &#163;15 million investment with the addition of over 50 new Resort bedrooms and a state of the art Spa which was designed in conjunction with world spa consultants, ESPA. Billy Hastings has always been an optimistic man and continued to reinvest whenever he could in his hotels. Proof of this confidence came when he purchased the Europa hotel in Belfast in 1993 as a bombed-out wreck. He proceeded to spend &#163;10 million on rebuilding the hotel, transforming it to the magnificent City centre landmark it is today.” rev=”width: 500px; height: 250px”>
<img src=”images/history.gif” width=”317″ height=”170″/></a></div>[/CODE]

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@harrierdhJan 21.2010 — Post your image or send the full url to the image.
Copy linkTweet thisAlerts:
@wee2johnauthorJan 22.2010 — The image is lyteframe from dolem.com but here is a screenshot of what it looks like atm.

[IMG]http://i187.photobucket.com/albums/x218/wee2john/Untitled-1-3.jpg[/IMG]

And I wanted the image to be centred.



EDIT: Its ok i changed it. Instead of using lyteframe i changed it to lytebox. Then I made a canvis that was twice the width of image in photoshop. Put the image onto the canvis and centred it. And put the wider image in
Copy linkTweet thisAlerts:
@skywalker2208Jan 22.2010 — Have you tried margin auto on left and right?
×

Success!

Help @wee2john spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...