|
||||
|
Here's the code im using for centering stuff with CSS.
#Container { position:absolute; left: 50%; width: 1000px; margin-left: -500px; /*set to a negative number 1/2 of your width*/ } This is used as a div to contain the entire site, basically. So, you're pushing the div 50% of the width of the page, then backspacing it back half the pixel width of the div. It ends up centering things nicely.
__________________
I am responsible for what I say; not what you understand. OsmosisStudios Gear List |
|
||||
|
Quote:
__________________
Scott |
|
||||
|
The other thing you could do, which is likely easier and doesnt really increase size that much, is just make your vertical shots the right size with extra blank canvas space. Only really works if you're working with a flat-colour background.
__________________
I am responsible for what I say; not what you understand. OsmosisStudios Gear List |
|
||||
|
Download Firebug for Firefox. Start it then load your page. Now click on the HTML tab, abd on the right hand side, choose "Layout"
You'll then be able to click on any code elements and see how each of them effect your code visually. I suggest you also use separate CSS for older versions of IE, and then import the code that breaks it for the newer versions. Here's a page discussing how to do that. CSS Guides: Separate style sheet for old browsers, SSI-Developer.net
__________________
A photo needs to start and finish in your imagination, if it passes through your camera in between, that's cool, if it doesn't, that's cool also. Flickriver Portfolio 500px Flickr NSFW |
|
||||
|
I use margin: auto like Rentham :P
__________________
Art: www.jamieorourke.co.uk Work: www.jamieorourkephotography.co.uk Work: Photo booth Hire in the West Midlands, and Wales Sony a200 Sony a580, Canon 500D, Photobooth
|
|
||||
|
Quote:
Margin: Auto; may work better for individual divs, though.
__________________
I am responsible for what I say; not what you understand. OsmosisStudios Gear List |
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Each day we send out a quick email to thousands of DPS readers to notify them of updates. This email is just short excerpt of the first few lines of our latest post with a link if you want to read it all. You can unsubscribe from this this service at any time.
This service is provided by a third party (Feedburner) and you can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.
Enter your email address for
Daily Updates:
For those wanting a weekly summary of what happens on this site this free email newsletter is probably your best option. It includes a summary of the tips posted to the site each week. This newsletter is subscribed to by over 25000 readers (many who also subscribe to the other options above) - come join the community!
To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.
Enter your email address for
Free Weekly Newsletter: