Log In · Register

 
Can Someone Put Some CSS & PHP Tutorials?
RealArtDesigns
post Jul 1 2009, 12:52 PM
Post #1


Senior Member
***

Group: Member
Posts: 63
Joined: Jun 2009
Member No: 735,129



well i kind of want to learn both

but i want to learn php or css fisrt

and then i am going to learn xhtml (yes it got an x)
 
 
Start new topic
Replies
newkidontheblock
post Jul 5 2009, 12:47 PM
Post #2


Offline.
*****

Group: Official Designer
Posts: 609
Joined: Mar 2007
Member No: 507,591



Here is a place where you can learn CSS

Let me help you out with some positioning, there are two main types of positioning.
CODE
position: absolute;
position: relative;


QUOTE(htmldog.com)
- static (default) - Follows the normal flow.
- relative - Relative position that is offset from the initial normal position in the flow.
- absolute - Taken out of the flow and offset according to the containing block.

- fixed - The same as absolute only the fixed box will remain fixed in the viewport and not scroll (or will appear on every printed page). Not supported by IE.


By default if you position absolute it will offset from the default size of the browser window, but if the containing div is position with relative positioning then absolute will offset from it.

example
CODE
<style type="text/css" >
     #parent { position: relative; top: 100px; left: 200px; width: 300px; height: 150px;
                background-color: red; }
     #child { position: absolute; left: 50px; top: 50px;
                width: 100px; height: 50px; background-color: green;
</style>
<div id="parent" >
    <div id="child" >
    
    </div>
</div>

preview

I don't not you understand where I am getting at.

Feel free to contact me for more.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: