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 14:48
Regular
"Devil in disguise"
Posts: 3,151
Well that shouldnt be the case, so if it behaving like that then I'd suggest theres some bad css somewhere. Its one of those problems where you need to see it in the context of an entire page.
Tue 08/08/06 at 14:18
Regular
Posts: 19,415
Awhile ago I created a table, it's to list all the languages for those who wish to learn them. The problem I encountered was I wasn't able to use any CSS within the tables. You see I wasn't able to change the text font or colour. So I had to go back and use <font colour=#888888 etc. Is there a way around this? I suppose I could just use CSS to list the languages into 4 columns but I've only attempted 2 columns before. Left and Right.
Tue 08/08/06 at 14:12
Regular
Posts: 19,415
Excellent :) I'd test it out but I'm afraid I haven't upgraded my hosting package at the moment, so I'm without a MySQL database which I'm guessing I'll be needing.

These javascript layer tab things are quite popular at the moment, I'm going through the top 500 alexa sites and the vast majority are using one sort or another.
Tue 08/08/06 at 14:05
Regular
"Devil in disguise"
Posts: 3,151
Machie wrote:
> The problem is that these polls that you can buy are worse in
> that they have far too many features. I just need a poll and bar
> graphs and I'm happy :)

Well the bar graphs are quite easy once you have the results. If you've got a result expressed as a percentage of total votes you can do something as simple as



Just a div with a php variable setting the length of it.
Tue 08/08/06 at 13:40
Regular
Posts: 19,415
heh, I'm a perfectionist :D everything needs to be just right.

The problem is that these polls that you can buy are worse in that they have far too many features. I just need a poll and bar graphs and I'm happy :)

It'll all be worth it in the end I promise :D

P.S With the results on a seperate page is fine, just not the voting bit. Maybe I should do a "Perl help" thread as I still dont want to make it index.php. If only we had perl programmers here :(
Tue 08/08/06 at 13:26
Regular
"Devil in disguise"
Posts: 3,151
Machie wrote:
> Thanks for the link Garin, looks very good, but don't think the
> results come in bar graphs do they? :(

Ever noticed how some people are never satisfied? They always want more. :P
Tue 08/08/06 at 11:34
Regular
"It goes so quickly"
Posts: 4,083
Thanks Machie.

Well in that case, well done to Garin also, good job :)

Try hotscripts to see if they have a script that suites your needs.
Tue 08/08/06 at 11:22
Regular
Posts: 19,415
Welcome back cjh, nice to see you again.

And wow thank you very much, I appreciate that, especially as all I did was copy and past a few bits so Garin could see what the problem was. I'm very happy with my progress and it's looking a lot more professional compared to my other attempts. A few more weeks and it should be done :)

Thanks for the link Garin, looks very good, but don't think the results come in bar graphs do they? :(

Perhaps I should pay someone to do it for me :D
Tue 08/08/06 at 11:09
Regular
"It goes so quickly"
Posts: 4,083
So, this place is back ... again, it's been years since I've been on a merry-go-round :)

Machie, I haven't read the whole thread, but clicked on your link, and just wanted to say I like the layout you've put together. Very nicely done, good job.
Tue 08/08/06 at 01:23
Regular
"Devil in disguise"
Posts: 3,151
Machie wrote:
> Thanks again Garin.

You're welcome.

> 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.

Yes, if only. :P Try starting here..
Pretty nice tutorial about polls

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Unrivalled services
Freeola has to be one of, if not the best, ISP around as the services they offer seem unrivalled.
I am delighted.
Brilliant! As usual the careful and intuitive production that Freeola puts into everything it sets out to do. I am delighted.

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.