Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-18-2012, 03:26 PM   PM User | #1
nintendofanboi
New to the CF scene

 
Join Date: Apr 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nintendofanboi is an unknown quantity at this point
Dynamically moving table in CSS

Hi I'm trying to make a webpage that looks like this mock up I've made..

http://www.interludeartists.co.uk/ma...es/preview.jpg

I've managed to get the background to dynamically resize to fit in most browsers, I'm having trouble getting the central elements to all move together so that it still looks like they're sitting on the floor.

I want all of the elements to always be centered but to move up and down in accordance with the users browser.

I understand that it's going to be impossible to make the elements sit in the same place in EVERY browser but wish to achieve this as best as possible.

My current HTML is here:

http://www.interludeartists.co.uk/mandy/index.html

and my current CSS is here:

http://www.interludeartists.co.uk/mandy/style.css

I'd really appreciate any help.

Thanks!
nintendofanboi is offline   Reply With Quote
Old 04-18-2012, 03:38 PM   PM User | #2
achira
New Coder

 
Join Date: Mar 2012
Location: Somewhere over the Rainbow
Posts: 96
Thanks: 7
Thanked 5 Times in 5 Posts
achira is an unknown quantity at this point
It actually is possible. Read up on flexible grid width design- specifically media queries and the css specific code for different browsers.

The short of it is that you create a set of CSS rules that are specific to variables that you specify- for example, you want to indicate layout rules for a smaller screen:

Code:
@media screen and (max-width: 770px) {
/*insert alternate rules here*/
}
as far as browser tweaks, here's an example of setting a border radius (gives the element rounded corners) in your css and including the code for the other browsers so it will look similar on any browser:

Code:
 border: thin solid #000;
 -webkit-border-radius: 15px;
 -moz-border-radius: 15px;
 -o-border-radius: 15px;
 border-radius: 15px;
hope this helps.
achira is offline   Reply With Quote
Reply

Bookmarks

Tags
css, dunamic, move

Jump To Top of Thread


Thread Tools
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 not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:57 PM.


Advertisement
Log in to turn off these ads.