/    Sign up×
Community /Pin to ProfileBookmark

simple beginners css problem

i have been on this forum for a while and i see that every body is always on about css. i have never done any thing with css being a action Script-er, never had the need. but i was making a little site of my own with css and have come in to a little problem:

[url]http://www.analogintelligence.co.uk/new/pages/showimage.php?image=82[/url]

the image is ment to be in the middle of the page but for some reason it s not in all browsers (except safari)? don’t under stand why because i have had no problems placing the “< last image” & “back to montage” & “next image >” buttons as these are placed with css so why dose my big image not place it self right?

this is part of my style sheet big_image is the the style that is not working:

#big_image {
position:absolute;
top:0px;
left:162px;
width:445px;
height:290px;
background-color: #333333;
overflow: hidden;
}

#box_b {
position:absolute;
top:305px;
left:162px;
width:100px;
height:30px;
background-color: #333333;
overflow: hidden;
}

#boxmid {
position:absolute;
top:305px;
left:334px;
width:100px;
height:30px;
background-color: #333333;
overflow: hidden;
}

#box_n {
position:absolute;
top:305px;
left:507px;
width:100px;
height:30px;
background-color: #333333;
overflow: hidden;
}

to post a comment
CSS

7 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWOct 09.2004 — remember that people have different screen resolutions, so setting a number of pixels for it to appear from the left will appear different in every browser and screen resolution.

A good example of the css for what you are doing is available on Pyro's old site:

http://www.infinitypages.com/research/verticalcentereddiv.htm

Then I suggest you put your menu items underneath, put them all in a div with text-align: center; and then float the one to the left, the other to the right, and let the third come up between.
Copy linkTweet thisAlerts:
@Ben_RogersOct 09.2004 — Dave - That page checked out in Firefox 0.10.1, Opera 7.54, IE 5.01 and IE 5.5; all on Windows.
Copy linkTweet thisAlerts:
@DaveSWOct 09.2004 — Ben... which page? Pyro's or Lomokev's?
Copy linkTweet thisAlerts:
@Ben_RogersOct 09.2004 — [i]Originally posted by DaveSW [/i]

[B]Ben... which page? Pyro's or Lomokev's? [/B][/QUOTE]
Oh, sorry. I didn't check the domain, and was under the impression [url=http://www.infinitypages.com/research/verticalcentereddiv.htm]that page[/url] belonged to you. Oops. :p
Copy linkTweet thisAlerts:
@DaveSWOct 09.2004 — lol - I wasn't sure whether you were arguing Lomokev's code worked fine or whether you were telling me some extra browsers that Pyro's worked in! Send him a PM with the details in - I know he's always glad to have more testing done for free!
Copy linkTweet thisAlerts:
@Ben_RogersOct 09.2004 — Nah, I think Infinity web pages as a whole is dead. I don't know why it's even up anymore, taking into consideration the existance of [url=http://www.infinitywebdesign.com/]Infinity web design...[/url]
Copy linkTweet thisAlerts:
@lomokevauthorOct 10.2004 — cacheing problem

sorry guys there was nothing wrong with the page it was a cacheing issue check it 2 hours later on both MAC/PC on all browsers and it was fine!
×

Success!

Help @lomokev 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 4.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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...