GetDotted Domains

Viewing Thread:
"CSS help"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Thu 29/06/06 at 22:25
Regular
Posts: 19,415
Okay I'm having a CSS problem with my site, I have a bar with links in "block", at the moment the blocks are aligned on the left. How do I go about centering them in the middle?

Thanks in advanced :)


#block {
float:left;
clear:both;
background-color: #DEDECE;
width: 768px;
height:26px;
border-left: #A5A5A5 solid 1px;
border-right: #A5A5A5 solid 1px;
border-bottom: #A5A5A5 solid 1px;
}

#block a {
text-align: center;
width: 90px;
text-decoration: none;
line-height: 26px;
display: block;
float: left;
}

#block a:hover {
text-decoration: underline;
}

#block span {
float: left;
line-height: 25px;
}

____________________

<div id="block">
<a href="test.html" class="pagelink">Page1</a><span>|</span>
<a href="test.html" class="pagelink">Page2</a><span>|</span>
<a href="test.html" class="pagelink">Page3</a><span>|</span>
<a href="test.html" class="pagelink">Page4</a>
</div>

Tue 08/08/06 at 01:12
Regular
Posts: 19,415
Think I'll be off to bed now, but not to worry I'll be back tomorrow with even more CSS problems no doubt ;)

Thanks again Garin.

Oh maybe I can start a "PHP help" thread too. It's been 4 months since I tried searching for a way to create a poll for my site. If only we had PHP programmers on here too.
Tue 08/08/06 at 00:50
Regular
Posts: 19,415
Wow two birds with one stone :) impressive Garin, even in the middle of the night you can work miracles.

It's working perfectly now :^D or as can be, considering the CSS cellotape keeping it from messing up the stuff above it. ;)
Tue 08/08/06 at 00:42
Regular
"Devil in disguise"
Posts: 3,151
Yes you should have...

DOM_a.onclick = this.navClick;
DOM_a.onmouseover = this.navClick;

oh and a few lines above that..
the line starting DOM_a.href replace it with this
DOM_a.href = "#"+ t.headingText;
and theres your javascript:void(null); problem gone too.

If you still cant get it work, just upload the tabber.js file again and I'll look.
Tue 08/08/06 at 00:39
Regular
Posts: 19,415
Just to make sure I took it out and it's working in IE again. That's strange I wonder why it would work for you and not me :S I don't think I've touched anything apart from change the colour of the thing, that's all. It should be the same and certainly didn't touch the js page, only to try the earlier command you gave me. hmm :S
Tue 08/08/06 at 00:37
Regular
Posts: 19,415
Garin wrote:
> It works I'm just an idiot, the line should be
>
> DOM_a.onmouseover=this.NavClick;
>
> Tested on a local copy of your page and works.

Now I feel like the idiot, I'm suppose to put it under the "onclick" one. It doesn't work in FF and in IE it now gives me an error and removed the whole thing :S yikes!
Tue 08/08/06 at 00:34
Regular
Posts: 19,415
oh one last thing, I don't like the javascript:void(null)murder:death:kill; bit in the status bar when you put the mouse over one of the layer tabs. I don't want it to worry/confuse my users and if I noticed it I'm sure they would, so yeah any ideas how I can remove/overwrite it?
Tue 08/08/06 at 00:33
Regular
"Devil in disguise"
Posts: 3,151
It works I'm just an idiot, the line should be

DOM_a.onmouseover=this.NavClick;

Tested on a local copy of your page and works.
Tue 08/08/06 at 00:16
Regular
Posts: 19,415
No joy I'm afraid :( ah well, thanks anyway Garin, really appreciate the help.
Tue 08/08/06 at 00:03
Regular
"Devil in disguise"
Posts: 3,151
First guess (ie I've not tested it)....

Open tabber.js and find DOM_a.onclick = this.navClick;
below it put DOM_a.MouseOver=this.NavClick;
Mon 07/08/06 at 23:52
Regular
Posts: 19,415
Oh and the 5 other people viewing this thread who probably have no CSS knowledge, go to bed :P it's almost midnight

;^)

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Top-notch internet service
Excellent internet service and customer service. Top-notch in replying to my comments.
Duncan
Excellent support service!
I have always found the support staff to provide an excellent service on every occasion I've called.
Ben

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.