TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 08-14-2008, 02:14 AM   #1 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default help me understand short notation.

for example, this line of code

Code:
body {
background: #eee url(bg.gif) 0 100% repeat;
}
from my thinking the long notation would be

Code:
body {

background-color:#eeeeee;
background-image:url(bg.gif);
background-repeat:repeat;
}
but what is the 0 and 100% in long notation?

also the thing thats not making sense to me is
for example this template: [image]http://i2.sitepoint.com/graphics/image031.png[/image]

which can be found here: Breaking Out of the Box With CSS Layouts [CSS Tutorials]

the header image with the swirly whose id is called header.
the code that is holding it up there is written like this

Code:
background: #966 url(header.gif) bottom no-repeat;
then the footer swirly is written like this
Code:
background: #333 url(footer.gif) top no-repeat;
whats confusing the life out of me is that , see for the footer code how it has the keyword top in it and the header have bottom in it. how is bottom showing on top? read again if ur confused to what im saying :)
__________________
no signature set
sarmenhb is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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


All times are GMT. The time now is 03:28 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design