Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

slow css rollover without images

This is a discussion on "slow css rollover without images" within the Web Page Design section. This forum, and the thread "slow css rollover without images are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 22nd, 2008, 21:35
New Member
Join Date: Jul 2008
Location: manchester uk
Age: 25
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Cool slow css rollover without images

i think i'll start with "hello everyone" as this is my 1st post. now on to the problem:

i am trying to use css to change the colour and background colour of some text in a link when it is hovered over. the trouble is, the colour changes happen very slowly and i can't understand why. i've seen people describe problems like this but only involving images. i'm also using javascript to make an image "fall" down the side of the page (unrelated to the links) and when the colour change is trying to happen it pauses the movement like it's making the whole browser stick. i'm using an anchor tag with class="block" to apply the following css:

Code: Select all
 
a.block:link, a.block:visited, a.block:hover, a.block:active
{
display: block;
width: 55px;
height: 55px;
font: bold 30px "curlz mt";
text-decoration: none;
}
a.block:link, a.block:visited, a.block:active
{
color: #f0f;
background-color: #0f0;
}
a.block:hover
{
color: #0f0;
background-color: #f0f;
i would appreciate any advice on what i'm doing wrong or how to do it better.
thanks a lot folks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jul 23rd, 2008, 00:39
Reputable Member
Join Date: Mar 2008
Location: Chester, UK
Age: 18
Posts: 465
Thanks: 2
Thanked 33 Times in 33 Posts
Re: slow css rollover without images

How fast is your pc?
Also remove the js from the page, does this affect the problem in anyway?
Also have you got a link?

I shouldn't think this is really a css problem, it's generally lightweight, but js can be quite bulky and messy in some cases and easily crash or freeze a browser on slower computers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 23rd, 2008, 16:17
New Member
Join Date: Jul 2008
Location: manchester uk
Age: 25
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: slow css rollover without images

thanks for your reply, i think you've cracked it for me! i was accessing the page on a memory stick. after copying it to the computer it's speeded up. i can't believe it was so simple! i'm such a dope . it never occurred to me that it might be a non-code issue because it only slowed down after i swapped the javascript rollover images i was using originally for css (which i thought would speed it up).

the problem seemed to happen mainly with the code at the end of the stylesheet not working properly/fast enough. if i moved something to the top of the document it would start working again but something else would stop. is it better then to use a few smaller stylesheets than one big one to prevent this happening on slower computers?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 23rd, 2008, 16:28
Aso's Avatar
Aso Aso is online now
Moderator
Join Date: Oct 2007
Location: UK
Posts: 1,536
Blog Entries: 2
Thanks: 19
Thanked 81 Times in 76 Posts
Re: slow css rollover without images

I would stick to one stylesheet if you can. I doubt multiple (but smaller sized) stylesheets would reap any benefits in load times, plus you're only increasing the number of HTTP requests the client's browser will have to make.

If the size of your stylesheet is seriously affecting performance, I'd be concerned about the operating efficiency of your computer. CSS is extremely light, and almost any system will handle it well.
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 23rd, 2008, 17:40
Reputable Member
Join Date: Mar 2008
Location: Chester, UK
Age: 18
Posts: 465
Thanks: 2
Thanked 33 Times in 33 Posts
Re: slow css rollover without images

I shouldn't really think it's performance, my 600mhz laptop with 128mb ram can handle about 4 tabs in firefox pretty well (or if theres heavy flash content i.e youtube then only 1 tab).

I mean that's pretty attrocious spec.

Although regardless of your spec, it could be that you're running too much at once that's slowing your pc down.

But like ASO said, you want to try and keep http requests minimal to increase performance (more for when it's on a server as opposed to local).

CSS should never effect speed, but graphics, js and so on is another matter.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple rollover images change multiple images joshlindem Web Page Design 4 Apr 18th, 2008 10:11
Creating rollover images in photoshop Kurt Graphics and 3D 8 Sep 9th, 2007 22:11
Rollover images not placed correctly smandge Web Page Design 1 Jan 30th, 2007 13:50
Help w/ rollover images not loading camcool21 JavaScript Forum 3 Jan 1st, 2007 02:22
Rollover Images in diff cells efreeti Web Page Design 6 Jun 16th, 2006 15:04


All times are GMT. The time now is 18:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8