Log In · Register

 

Help Topic Rules and Requirements

For a list of all requirements and guidelines pertaining to posting a new Help topic, please click here.

This Month's Contests | Staff Member of the Month | Hosts Looking for Hostees | Hostees looking for Hosts | BigBookofResources

Submission Guidelines

Fixed vs Fluid vs Elastic, and basic setup
barrykins
post May 12 2010, 01:44 PM
Post #1


Senior Member
***

Group: Member
Posts: 73
Joined: Dec 2009
Member No: 754,485



Well. I've been going back in forth in deciding on how to design websites overall. Fluid is amazing, yes. But however, it can pose problems to people that have cinema display Macs. Right? I develop on a macbook pro so my 1440x900 resolution would be different then that of someone one a windows.

I guess Im looking for input on what you design in and kind of the basic set up to let everyone be able to see.
As such I use the 960 grid for laying out my wireframes but I'm confused about one thing. How big do you exacly make the Background image so a screen with a larger size may be able to see it?

This is what I currently use to set up the main containers and bg, am I correct? Centering is a issue with em because I don't exacly understand the em measurements. Any input would be nice. Im majoring in graphic design so all web design is kind of self taught.

CODE



html, body{
background:url(..) no-repeat;
background-position:center;
height: 100%;
margin:0;
padding:0;
width:1000px;
}

#container {
position:relative;
min-height: 100%;
width:960px;
}

#main {
position:relative;
min-height: 100%;


 
 
Start new topic
Replies
barrykins
post May 19 2010, 12:53 PM
Post #2


Senior Member
***

Group: Member
Posts: 73
Joined: Dec 2009
Member No: 754,485



and how exactly would the phone know which CSS to use though?

QUOTE
You can just use an auto margin on a container to center it. In most cases, "margin:auto" will equalize the left and right margins, if the element you're giving the margin to has a defined width (be it fixed, fluid or elastic). There are exceptions; go figure, it involves Internet Explorer. Of course, it only errs in a 10+ year old browser, so it's not something you'd usually need to worry about. If it bugs you, though, also adding "text-align:center" to the body selector will fix it. You'll just need to remember to left align the text in your content area.


Well I realized the question I asked about the center was rather simple.

I would say something like.
CODE





.container {
margin: 3em auto;
width:960px;
text-align:left;
}

.main {
margin:auto;
position: relative;
}



 
mipadi
post May 19 2010, 01:21 PM
Post #3


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



QUOTE(barrykins @ May 19 2010, 01:53 PM) *
and how exactly would the phone know which CSS to use though?

<link> can take a "media" attribute. Phones will use a stylesheet designated with "media=handheld", if one exists.
 

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: