corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Some help regarding CSS please...


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Some help regarding CSS please...
ed
Member

Registered: 10th Sep 03
User status: Offline
10th Jan 07 at 11:45   View User's Profile U2U Member Reply With Quote

On my site I just built I have a login page here:

http://www.astonsnow.com

I just realised that when you have a slow internet connection noting comes up on the screen at all until the image has loaded becase the background is white and the text is white.

Is it possible to set a style in the image tag to make the background of the image green or something while the image is loading to prevent this problem?
AndyKent
Member

Registered: 3rd Sep 05
User status: Offline
10th Jan 07 at 11:47   View User's Profile U2U Member Reply With Quote

Don't think so - would be easier to set the background to a pale colour (which the image then blocks out) or the text to a pale gray so you can at least see something......

you might want to add:

code:

style="background-color:green"



to the item holding the image
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
10th Jan 07 at 11:48   View User's Profile U2U Member Reply With Quote

Cant you just set the background colour of the whole thing to be green?

Then while the image is loading, it will all be green, then when the image has loaded, it will over ride it.
ed
Member

Registered: 10th Sep 03
User status: Offline
10th Jan 07 at 11:58   View User's Profile U2U Member Reply With Quote

I had a mental block and just realised how I did it. The div has a background image, and now I have set a backgound colour too... Think that will work?
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
10th Jan 07 at 11:59   View User's Profile U2U Member Reply With Quote

Yep should do.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
CSS webdesign help Houckham Geek Day 3 894
20th Apr 06 at 11:01
by Houckham
 
Making a PC DVD writer drive multi region? Sam Geek Day 2 1278
2nd May 06 at 00:34
by Jules
 
any web designers here??? KITcorsa Geek Day 7 1601
12th Jul 06 at 19:16
by Dom
 
FAO: Webmasters: CSS Bart Geek Day 14 1124
24th Oct 06 at 14:57
by Ian
 
Input on a website please, web designers especially :D drunkenfool Geek Day 56 3016
25th Nov 06 at 19:08
by aPk
 

Corsa Sport » Message Board » Off Day » Geek Day » Some help regarding CSS please... 28 database queries in 0.0095460 seconds