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 20:27
Regular
Posts: 19,415
Thanks again for the Ticker Hmmm :D it's great! Just what I wanted and looks great now that it's all sort ^_-
Mon 07/08/06 at 20:06
Regular
Posts: 19,415
12 gold stars?? :(

okay nevermind, I'll just stick it in the ticker box again.

Who knew building a website could be so frustrating.
Mon 07/08/06 at 19:53
Regular
Posts: 19,415
aww but I'm saving it for the big unveiling :'(
Mon 07/08/06 at 19:48
Regular
"Devil in disguise"
Posts: 3,151
Sheesh, just upload what you've done and show it to us.
Mon 07/08/06 at 19:48
Regular
Posts: 19,415
I sorted the problems I mentioned before. New problem. I got rid of the ticker box as I didn't really need it because I can do the changes with these right?

Anyway when I got rid of the ticker box, it broke the page and went next to the thing above it. So I added float: left; to 3 of the things below. Should I have done that? It stopped it from breaking the page so I moved on. I want to a space between the things above and below it. Can I & Where do I place the padding/margin bit.

After that the ticker is sorted and the world it as peace once more.

10 gold stars to the man (or lady) who helps this poor fool, thats how much I want this finish and working/looking good.

/*------------ TICKER ------------*/
a.tickl{
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:11px;
line-height:12px;
text-decoration:none;
color:#003000;
font-weight:bold;
float: left;
}
a.tickl:hover{
color:#ff0000;
text-decoration:none;
}
.ticki{
width:629px;
height:13px;
overflow:hidden;
color:#003000;
float: left;
}
.ticko{
width:629px;
float: left;
border-top:1px solid #cccccc;
border-bottom:1px solid #cccccc;
padding:4px 0 4px 0;
margin:4px 0 2px 0;
display:block;
}
.tickls{
color:#666666;
}
.tickh{
display:none;
}
Mon 07/08/06 at 18:59
Regular
Posts: 19,415
ARRRRRRRRRRRRRRRHHHHHHHHHHHHHH!!
Mon 07/08/06 at 18:31
Regular
Posts: 19,415
ARRRRRGHHHHHHHHHHHH!!
Mon 07/08/06 at 17:40
Regular
"Tornado Of Souls"
Posts: 5,680
Use classes?

If I understand?
Mon 07/08/06 at 17:39
Regular
Posts: 19,415
okay I'm quickly creating a temp page.
Mon 07/08/06 at 17:34
Regular
Posts: 19,415
yes I just copied his CSS page and have my thing direct to it. the content.css file and the ticker.css file are telling all the link colours to be different so there's a clash. Just need to work how How I can use both without disturbing the other.

For instance, my links are light black, but I want the ticker to be blue. I could tell the ticker boxer to make the text blue but then it'll stay blue when you have the mouse over it.

oh dear that sounds even more confusing lol.

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.
Simple, yet effective...
This is perfect, so simple yet effective, couldnt believe that I could build a web site, have alrealdy recommended you to friends. Brilliant.
Con

View More Reviews

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

Go to Support Centre
Feedback Close Feedback

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.