- This topic is empty.
-
AuthorPosts
-
February 24, 2010 at 3:41 pm #28133
Neomie
MemberCan you see anything immediately wrong with the following style tags?
div.button {background: #fff url(images/banners_right/Growthsmall.jpg) no-repeat;
font: tahoma; color: #000000;
text-decoration:none;
width:130px; height:264px; top:0px; padding: 1px;}
div.button a {color: #00000; text-decoration:none; width:130px; height:260px; display:block;
text-align:center;}
div.button a:link {color:black; text-decoration:none;}
div.button a:hover {color:#5ed883; text-decoration:none;}This is for the banner on the right at http://www.trichotillomania.co.uk/_working/index.html
I’m baffled because I think I have written it so that the text is black and appears green on hover. However, if you look at the banner, the text is the same color as the left menu. Also the position of the text is strange as it is supposed to be centered and it is too far to the right.
I always welcome any advice on my code so comments on any other aspects will be used positively. I have no formal training and am very keen to learn.
Thanks
NeoFebruary 24, 2010 at 4:22 pm #71522TheDoc
MemberThe colors are working fine.
The reason why it’s not centered completely is because the div class of "button" is bigger (130px) than its parent container "content_right" (120px).
You need to rework everything so that its the same width, whatever you’d like that width to be.
February 24, 2010 at 5:02 pm #71523Neomie
Memberoooh, thanks guys.
TT_Mark, is the page loading fine in safari? That’s really good news if so. I’m using the dreaded (dare I say it) Internet Exploiter.
Is there a website where you can see what it would look like on different platforms?
TheDoc, thank you for your very constructive comment. I bow to your greater knowledge. Getting up again is a bit of a problem tho. LOL. I’m glad you solved the alignment problem for me and it looks like TT_Mark identified the other problem as I.E.
Thanks for your responses and I will undoubtedly be back!
Warm regards
NeoFebruary 24, 2010 at 5:30 pm #71525Neomie
MemberTT_Mark, thank you for your speedy and invaluable help.
I knew I would be back, I just didn’t realise how soon!
What do I need to do to stop the text from touching the right hand ruled line of the image?
Thank you very muchly
Neo
:DFebruary 25, 2010 at 2:29 pm #71594jinfiesto
MemberAdobe browserlab is great for cross-browser testing. Although Mark is right, nothing beats the real thing! Also, IEtester is great.
February 26, 2010 at 4:43 am #71639Neomie
MemberThanks so much guys.
To cut a long story short, I’m taking this over from my late husband who died very suddenly in the midst of working on this charity’s website. It is giving me a way to focus my grief.
Your advice has been invaluable and I am now making progress slowly but surely.
I know this subject has been dealt with many times before but I can’t find where to upload my notfound.html page – is there a quick answer?
Bless you guys as I don’t know what I’d do without you!
Warm regards from a freezing cold Neo in England
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.