Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 8:44 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ]  Bookmark and Share
Author Message
 Post subject: Problem with layout
PostPosted: Sun Jul 17, 2005 11:56 pm 
Offline

Joined: Mon May 23, 2005 12:00 am
Posts: 11
I am trying to work through a web design but only using CSS, instead of tables, and I am having a few problems....no surprise there...:)

I have started to create the page, and I have got this far.... not really knowing if I am using the cirrect CSS for this typoe of layout, and still


Last edited by wood1e on Thu Mar 29, 2007 10:45 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 18, 2005 12:06 am 
Offline
Site Admin
User avatar

Joined: Tue Aug 17, 2004 2:07 pm
Posts: 2554
Location: Sweden
When I do CSS layouts I use the float-command, some use fload and some use absolute position, but I think float gives a cleaner and faster code.

Take a look at the simplicity of this page:
http://www.party-poker-bonus-code.org

With the css:
http://www.party-poker-bonus-code.org/style.css

You can learn alot from that one, like centering the site and positioning DIVs. Look at that code, change yours and you will be more close to the final result. You can also take a look at the font-page here on devppl (not the forum) to look at a good DIV/CSS solution.

Read, fix and post your new result and we can help you futher with it. Good luck!

_________________
Make sure to check out our TNX Review and Link Vault Review


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 18, 2005 12:07 am 
Offline
500+ Club
User avatar

Joined: Sun Nov 21, 2004 5:12 am
Posts: 826
Location: 127.0.0.1
I am not entirely sure, but i think that you need to make the bigger table into two sections

_________________
Web-Developing since '03
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 18, 2005 7:44 am 
Offline

Joined: Mon May 23, 2005 12:00 am
Posts: 11
hi, many thanks will take a look at the CSS, on both sites....just get a little cinfused as the best way to start, weather spltting into two...or one container and placing the images inside...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 18, 2005 10:15 am 
Offline
Site Admin
User avatar

Joined: Tue Aug 17, 2004 2:07 pm
Posts: 2554
Location: Sweden
Make one big conainer first thats like 700pixels width and 100% height and center that one. Then add the new DIVS inside that big container-div. A good thing could be to add different background-colors for the DIVs when testing, and when you are done and there are as you want them to be, just remove the backgounds or maybe replace them with other images.

To add background color for a div:
CSS:
Code:
.div1 {
   background: #005500;
}


HTML:
Code:
<div class="div1">hello</div>

_________________
Make sure to check out our TNX Review and Link Vault Review


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 18, 2005 4:45 pm 
Offline

Joined: Mon May 23, 2005 12:00 am
Posts: 11
Thats cool, but how do i place the imges inside the container? As I seem to only be able to do by giving the first image an absolute setting, and then just placing the other image next to it!!!

Where I can I will use CSS for colours etc....

I presume that is right?

This all seems a little more complicated than just using a table and centreing that...:)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 18, 2005 4:52 pm 
Offline
250+ Club
User avatar

Joined: Thu Aug 26, 2004 5:06 pm
Posts: 289
Location: PS7+C4D=Love
webmaster wrote:
When I do CSS layouts I use the float-command, some use fload and some use absolute position, but I think float gives a cleaner and faster code.


Absolute Position is kinda bad to use, because (i forgot which one it was, its been forever) if you make it a certain res site, and its viewed in a different res the site looks messed up OR if you minimize the window it will mess up the positioning of everything.

that used to piss me off


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 18, 2005 5:02 pm 
Offline
Site Admin
User avatar

Joined: Tue Aug 17, 2004 2:07 pm
Posts: 2554
Location: Sweden
wood1e wrote:
Thats cool, but how do i place the imges inside the container? As I seem to only be able to do by giving the first image an absolute setting, and then just placing the other image next to it!!!

Where I can I will use CSS for colours etc....

I presume that is right?

This all seems a little more complicated than just using a table and centreing that...:)


If you want you can use an orginary image-tag:
Code:
<img src="image.jpg" alt="" />

Or add the image as a backgound in a DIV with the css command:[.div2 {
   background-image: url(image.jpg);
}


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 18, 2005 6:31 pm 
Offline

Joined: Mon May 23, 2005 12:00 am
Posts: 11
Oh I see...so simple!! Where was I going wrong tryingt o place two imagfe side by side..!!! :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley