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 17:25
Regular
"Devil in disguise"
Posts: 3,151
Machie wrote:
> in my main css is overriding the colours in the ticker css. Not
> sure what I should do there. Also I'm trying to get the
> "LATEST" bit to be a different colour and in bold than
> the rest of the ticker.

Are you defining these.. http://www.hmmm.ip3.co.uk/ticker/ticker.css as Hmmm... has done?
Mon 07/08/06 at 16:57
Regular
Posts: 19,415
Okay I'm having problems with the links, my...

a { text-decoration: none; }
p a { text-decoration: underline; }
a:link { color: #888888; }
a:visited { color: #888888; }
a:hover { color: #888888; }
a:focus { color: #888888; }
a:active { color: #888888; }


in my main css is overriding the colours in the ticker css. Not sure what I should do there. Also I'm trying to get the "LATEST" bit to be a different colour and in bold than the rest of the ticker.

var theLeadString = "LATEST:&nbsp;";

I suppose I could add around it :/
Mon 07/08/06 at 16:39
Regular
Posts: 19,415
oh dear I am a n00b sometimes. Thanks Garin.

I'll just finish the ticker then I'll go start on that tabbed javascript layer thingy. See if I could get something like that for my site.
Mon 07/08/06 at 16:34
Regular
"Devil in disguise"
Posts: 3,151
If you're testing locally then IE will flag javascript as a security risk. Upload it and see if the problem persists.
Mon 07/08/06 at 16:23
Regular
Posts: 19,415
Nice one Garin :D A*

[B][U]ALERT! ALERT! ALERT![/U][/B]

Aww and I thought it was going well too. My ticker which is exactly like Hmmm's with the only change being that I put it inside a ticket box (to add some padding was planning to do more changes later)...

#ticker {
float: left;
background: #FFFFFF;
width: 760px;
padding: 5px;
text-align:left;
font-family: verdana;
color:#888888;
font-size: 110%;
}


Works perfect in FF but for some reason IE is blocking the ticker because of a security problem :( however viewing Hmm's ticket I don't get a similiar warning.

Have I done something wrong? :(
Mon 07/08/06 at 14:44
Regular
"Devil in disguise"
Posts: 3,151
Machie wrote:
> how about now? :)

Add style="display:block;" to your image tag.
Mon 07/08/06 at 12:32
Regular
Posts: 19,415
hehe I got it working :^D

Any drawbacks to having a ticker from a webdesign point of view? Opinions please.
Mon 07/08/06 at 11:42
Regular
Posts: 19,415
wow thanks a lot Hmmm, impressive. Think I might try and do one for my site :D Though probably shouldnt go nuts with it.

Hope it wont be too difficult to set up :)
Mon 07/08/06 at 11:09
Moderator
"Are you sure?"
Posts: 5,000
Machie wrote:
> Oh and just curious, how are BBC doing their text ticker?

I liked the BBC News ticker as well. I've used it myself in the past.

I've knocked up a quick working example of the ticker if you want to play: [URL]http://www.hmmm.ip3.co.uk/ticker[/URL]. The BBC insert the ticker page in to an iFrame.

Lots has already been written about the BBC ticker, here's a good place to start [URL]http://www.webreference.com/programming/javascript/professional/chap21/[/URL]
Mon 07/08/06 at 09:24
Regular
Posts: 19,415
Garin wrote:
> Machie wrote:
> Everythings great except for a 1px line between the image and
> the CSS content. so making it incomplete.
>
> Could be many things. Lets see the code. ;)

aww I knew you were gonna say that >_<


<div id="rightcol">

<img src="news-title.gif" width="200" height="30" alt="" />
<div id="news">
News
</div>

</div>

----

#rightcol {
width: 200px;
float:right;
background: #FFFFFF;
}

#news {
background: #FFFFFF;
width: 198px;
text-align:left;
font-family: verdana;
font-size: 13px;
border-left: #A5A5A5 solid 1px;
border-right: #A5A5A5 solid 1px;
border-bottom: #A5A5A5 solid 1px;
}



how about now? :)

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Very pleased
Very pleased with the help given by your staff. They explained technical details in an easy way and were patient when providing information to a non expert like me.
LOVE it....
You have made it so easy to build & host a website!!!
Gemma

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.