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>

Mon 07/08/06 at 23:49
Regular
Posts: 19,415
As I thought. HTML seemed more solid 10 years ago, this CSS it's like building a car from parts of other cars and hoping it'll all work together when you start it up.

No wait that was a bad analogy but you know what I'm trying to say. :)

Don't suppose you know how I can do the mouse over to change "page" like the korean one, do you?
Mon 07/08/06 at 23:39
Regular
"Devil in disguise"
Posts: 3,151
I tried that too... It works but I wasnt too keen on suggesting it as its not really fixing the problem, more along the lines of hiding it. But hey, its look ok so... :)
Mon 07/08/06 at 23:24
Regular
Posts: 19,415
oh it worked :S

is it an okay way to solve the problem? All I did was put it in this.

#layer {
float: left;
background: #FFFFFF;
width: 770px;
text-align:left;
}
Mon 07/08/06 at 23:20
Regular
Posts: 19,415
The javascript layer or the ticker?

:( you sure there's nothing I can do? hmm what if I put the javascript layer divs in a box like the ticker. Perhaps that'll solve my problems, back in two ticks.
Mon 07/08/06 at 23:12
Regular
"Devil in disguise"
Posts: 3,151
All I can say for certain is something is very broken. ;)
Mon 07/08/06 at 21:41
Regular
Posts: 19,415
Problem 1: How to stop the javascript layers from overlapping the other div above it (in IE its under the div above)
Check for Errors: Is the ticker coding okay?

Please click here to view the problem(s) listed above. Thnx :^)

;)
Mon 07/08/06 at 21:15
Regular
Posts: 19,415
Ah that's good then, just trying to shove it into one of my page. It works, just it wants to overlap several things above it where I want it. hmm maybe if I add a float:left; into one of these divs.

Something tells me I cant solve all my CSS problems by adding float:left; hehe
Mon 07/08/06 at 21:06
Regular
"Devil in disguise"
Posts: 3,151
Its possible it wont work on some browsers, it'll ultimately depend on the code you use though. Theres work arounds for alot of the browser differences, just a matter of whether what you use takes care of this (or uses methods that work cross-browser).

What you linked to looks pretty nice though. I'd imagine it works in most modern browsers.
Mon 07/08/06 at 20:42
Regular
Posts: 19,415
Surely you can look at all the coding and picture it how it should be in your imagination cant you? ;D heh sorry Garin.

I'm working on the javascript layer thing now, so please tell me if you know of any problems with javascript layers and browser support. I don't want to set it all up to find out AOL browser doesnt like it. You're my "Go to Guy" so should I be cautious?

After some searching I came across this guys example here which is what I'm after, just going to do some testing.
Mon 07/08/06 at 20:30
Regular
"Devil in disguise"
Posts: 3,151
Machie wrote:
> Who knew building a website could be so frustrating.

I can assure its not as frustrating as trying to help people who dont want to post the things they want help with. :P

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

10/10
Over the years I've become very jaded after many bad experiences with customer services, you have bucked the trend. Polite and efficient from the Freeola team, well done to all involved.
Best Provider
The best provider I know of, never a problem, recommend highly
Paul

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.