Log In · Register

 
Moving shows/blogs
henrybayuzick
post May 31 2009, 01:39 PM
Post #1


Member
**

Group: Member
Posts: 10
Joined: Oct 2008
Member No: 693,488



Is there a specific way to move the shows table? I need to push it over about 10 pixels.
 
 
Start new topic
Replies (1 - 4)
fixtatik
post Jun 1 2009, 05:52 AM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



for the shows, use this:
CODE
table div table { left:50%; margin:## 0 0 ##px; position:absolute; top:0; }
table div table table { left:auto; margin:auto; position:static; top:auto; }
 
henrybayuzick
post Jun 1 2009, 04:07 PM
Post #3


Member
**

Group: Member
Posts: 10
Joined: Oct 2008
Member No: 693,488



Thanks for replying. I had a question about your code but first I'll post the code I ended up using just in case someone needs it.

CODE
<style>
div[id="profile_bandschedule"] {position:relative; margin-left:180px; margin-top: 20; z-index: 8;}
</style>

<style>
.latestBlogEntry  {position:static; margin-left:185px; z-index: 9;}
</style>


My question is:
I noticed that in the code you gave me for the player and now this code you use this

CODE
margin:## 0 0 ##px;


What does that mean, and does it have any helpful traits to it (i.e. does not differ between different browsers)

I've always been better at the design side than the code side, so I've been really wanting to learn real clean code that does not differentiate between browsers.

You've been a real big help.
 
fixtatik
post Jun 1 2009, 04:56 PM
Post #4


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



margin:## 0 0 ##px; is just the shorthand for margin properties. it allows you to put in a top margin, bottom margin, etc., without writing out margin-top:##px; margin-bottom:##px;. the dimensions go counter clockwise:
CODE
margin:TOP RIGHT BOTTOM LEFT;
you only need the "px" or "%" or "em" after the last property.
you can also use shorthand for top/bottom, right/left combinations:
CODE
margin:## ##px;

where the first ## is the dimension for both the top and bottom margins, and the second ## is for both right and left.

as for the code you're using, that will unfortunately only work in firefox.
 
Mickey
post Jun 28 2009, 06:08 PM
Post #5


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Topic closed & moved.
 

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