icon Learn how to get the most out of Surmunity - read our forum tips here! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Coding and Programming » [Answered] My site, how does it look

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old March 10th, 2008, 8:17 PM   #19 (permalink)
Registered User
Seasoned Poster
 
kwright510's Avatar
 
Joined in Dec 2007
42 posts
Gave thanks: 4
Thanked 2 times
Quote:
Originally Posted by William View Post
Thanks, does look nice and interesting, but I plan to do everything myself.
Then this may be of interest: Create a Lightbox effect only with CSS - no javascript needed : Emanuele Feronato - italian geek and PROgrammer
kwright510 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 10th, 2008, 8:32 PM   #20 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,282 posts
Gave thanks: 23
Thanked 39 times
That certainly would be something I'd try, saved link, thank you.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 11th, 2008, 2:54 AM   #21 (permalink)
4-8-15-16-23-42
Excelling Contributor
 
caseylee's Avatar
 
Joined in Jul 2007
Lives in Australia, turn left at America
Hosted on Luna & Nexus (dedicated)
774 posts
Gave thanks: 36
Thanked 29 times
I like it, it's very clean.

Could do with some pink, though... :]
__________________
caseylee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 11th, 2008, 3:03 PM   #22 (permalink)
Cass Doesn't Sleep
Seasoned Poster
 
cass_is_awesome's Avatar
 
Joined in Mar 2008
Lives in Michigan
Hosted on SH138
78 posts
Gave thanks: 5
Thanked 6 times
Very nice job.

Clean, professional, works well in a wide range of resolutions.

Did you
Code:
{
position : absolute;
left : 50%;
margin-left : -375px;
}
To keep it centered regardless of the browser position?
cass_is_awesome is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 11th, 2008, 10:21 PM   #23 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,282 posts
Gave thanks: 23
Thanked 39 times
Thanks caseylee, pink, haha, I don't think so.

cass_is_awesome, thanks also, nope just did it, well, see below.
Code:
<div align="center">
  <div id="container">
    <div id="header">
      
    </div>
    <div id="nav">
      
    </div>
    <div id="content">
      
    </div>
    <div id="footer">
      
    </div>
  </div>
</div>
</body>
</html>
Who put answered in the title, just curious.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 11th, 2008, 11:10 PM   #24 (permalink)
H
after g, before i
Super #1
 
H's Avatar
 
Joined in Jul 2004
Hosted on Gojira
7,869 posts
Gave thanks: 44
Thanked 127 times
Quote:
Originally Posted by William View Post
Thanks caseylee, pink, haha, I don't think so.

cass_is_awesome, thanks also, nope just did it, well, see below.
Code:
<div align="center">
  <div id="container">
    <div id="header">
      
    </div>
    <div id="nav">
      
    </div>
    <div id="content">
      
    </div>
    <div id="footer">
      
    </div>
  </div>
</div>
</body>
</html>
Who put answered in the title, just curious.
This:
Code:
<div align="center">
Should be deleted and never again be used. The code by cass_is_awesome or even a simple "margin: auto;" would be a much better way to go. It removes an unnecessary element and uses more standard ways of centering.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 11th, 2008, 11:36 PM   #25 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,282 posts
Gave thanks: 23
Thanked 39 times
Quote:
Originally Posted by H View Post
The code by cass_is_awesome or even a simple "margin: auto;" would be a much better way to go. It removes an unnecessary element and uses more standard ways of centering.
Thanks, something new to me and easy, like I say on my about page, its a learning experience, and I am still learning.

cass_is_awesome and H, I appreciate the hints.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 12th, 2008, 6:11 AM   #26 (permalink)
Cass Doesn't Sleep
Seasoned Poster
 
cass_is_awesome's Avatar
 
Joined in Mar 2008
Lives in Michigan
Hosted on SH138
78 posts
Gave thanks: 5
Thanked 6 times
Quote:
Originally Posted by William View Post
Thanks, something new to me and easy, like I say on my about page, its a learning experience, and I am still learning.

cass_is_awesome and H, I appreciate the hints.
No problem.

Just to kind of break down what it does, in case you or anyone else didn't know:

Let's say, for the sake of argument, that we're working with an 800 pixel box named "box"
Code:
.box{
width : 800px;
height : 400px;
position : absolute;
left : 50%;
Obviously, this positions the left edge of "box" 50% of your screen resolution away from the left edge of the screen.

Code:
margin-left : -400px;
}
or
Code:
margin : 0 0 -400px 0;
}
Takes the left edge of "box" and shifts is to the left by exactly one half of it's width, thus centering "box" perfectly in the horizontal center of the screen, regardless of whether the browser is in full screen, windowed mode, or screen resolution.

Also, if you're going to be using a background image in the body{} section of your CSS, make sure to position it to top center, that way, it will react the same way as your container that's centered in the screen.

Fun stuff.
cass_is_awesome is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks cass_is_awesome for this great post!
wgm (March 12th, 2008)
Old March 12th, 2008, 7:37 AM   #27 (permalink)
Cass Doesn't Sleep
Seasoned Poster
 
cass_is_awesome's Avatar
 
Joined in Mar 2008
Lives in Michigan
Hosted on SH138
78 posts
Gave thanks: 5
Thanked 6 times
Oops.

Caught an error.

Quote:
Originally Posted by cass_is_awesome View Post
No problem.
Code:
margin : 0 0 -400px 0;
}
Should be.

Code:
margin: 0 0 0 -400px;
cass_is_awesome is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

Advanced Search
Rate This Thread
Rate This Thread:

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

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