hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : How does this work
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

How does this work

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-13-2006, 02:20 PM
seodevhead seodevhead is offline
Web Hosting Evangelist
 
Join Date: Aug 2005
Location: EIB Network
Posts: 474
*

How does this work


I was looking through the CSS file used on Comcast.net and found something interesting. Take a look at the header on Comcast.net, and take a look at the H1 descendant declaration in the CSS file:

Code:
#header h1 {
	position: absolute;
	top: 11px;
	left: 15px;
	width: 123px;
	height: 32px;
	background: transparent url(/images/global/explore2.gif) no-repeat 0 0;
	overflow: hidden;
}
Now they are setting a background image ( http://www.comcast.net/images/global/explore2.gif ). Take a look now at this background image they are using. How does this one large image, laid out in the way it is, put together like it is on their homepage??? It doesn't make sense how they can turn this explore2.gif image into what you see on their homepage header. Perhaps one of you guru's can explain this to me . Thanks for your help and guidance! Take care.

__________________
People train run out of Stubville.

Reply With Quote


Sponsored Links
  #2  
Old 03-13-2006, 03:22 PM
WebDesignGold WebDesignGold is offline
Web Hosting Guru
 
Join Date: Jul 2004
Posts: 337
I'm not good at explaining how things are done but I can say it's about positioning of the background image. In fact that same image, or parts of it, is used in different places in the layout. Look at this part of the code and you'll understand:
Code:
repeat-x 0 -228px
Does this make sense?

__________________
My woman left me..
I've got no website..
I've got no money..

Reply With Quote
  #3  
Old 03-13-2006, 04:51 PM
seodevhead seodevhead is offline
Web Hosting Evangelist
 
Join Date: Aug 2005
Location: EIB Network
Posts: 474
I think I might understand what you are saying. So the background image was made in such a (special) way that when repeated along the x-axis, it perfectly unfolds and lines up in order to form the entire header you see on the homepage? If this is the case, why not serve up a header image that is more horizontal in nature (matching that of the box element), rather than this convoluted vertical-esque image?

__________________
People train run out of Stubville.

Reply With Quote
Sponsored Links
  #4  
Old 03-13-2006, 06:01 PM
WebDesignGold WebDesignGold is offline
Web Hosting Guru
 
Join Date: Jul 2004
Posts: 337
Not exactly. I personally don't understand what's the point of using it that way when they could've used separate images/icons instead. Ususally, that technique is used in menus that use hover effects. You have both the "onmouseover" and the "onmouseout" part in one single image. That way, there'll not be a delay of loading the "on" image since it's already loaded. It's just "hiding" there and wating for the mouseover call.
Here, you'll see how it's done. Even better, this method helps against the IE flickering annoyance.

__________________
My woman left me..
I've got no website..
I've got no money..

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host PEER 1 Named Top Workplace in UK Web Hosting News 2012-05-31 16:10:42
UK Web Host Rackspace Ranked Great Place to Work for Eighth Consecutive Year Web Hosting News 2012-05-28 15:51:42
Web Host DreamHost Volunteers with Education Non-Profit City Year Web Hosting News 2012-02-24 14:26:45
Monday Demo: SiteLock's Website Malware Scanning Tool Blog 2012-02-20 12:56:19
Web Host Pace Work Offers Localized Worldwide Hosting for Businesses Web Hosting News 2011-07-27 20:42:38


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?