|
|
Joined: Aug 2002
Posts: 218
Member
|
Member
Joined: Aug 2002
Posts: 218 |
Hi guys,
I want to give my navigation line a background image. I've seen that I can change the color of this line with the stylesheets.
Is it also possible to use a background image and not only a color within these css?
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
|
|
|
|
Joined: Nov 2002
Posts: 554
Code Monkey
|
Code Monkey
Joined: Nov 2002
Posts: 554 |
Does using images like that as opposed to using color codes have much of an effect on server performance?
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
You are loading a gif file but most of the sizes we are talking about have little effect.
Bandwidth is bandwidth so there is some. Something in the Millisecond range load difference unless the file is big and drags the server down.
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
One way to keep the file size down is to just cut an image so that it is only a few lixels wide (I normally cut my at 10 pixels). Since it is a background image it will tile, filling up the space that it's in. You can see the effect on my site.
The only area where I don't use a small graphic slice is my logo. Due to it's placement withing the tables it looks better being a single solid graphic.
|
|
|
|
Joined: Nov 2002
Posts: 554
Code Monkey
|
Code Monkey
Joined: Nov 2002
Posts: 554 |
Thanks for the insight guys
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
As far as images go they will use the same amount of bandwidth no matter how their placed or used in the page. HTML color attributes will display instantly whereas images may be the last things loaded during the page creation. Depending on how you want things to drop into place when the page is being created you may want to opt for html colors.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|