Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 27th, 2011, 4:55 PM   #1
blakec
Newbie
 
Join Date: Oct 2010
Posts: 5
Rep Power: 0 blakec is on a distinguished road
CSS Position Problem

Okay here's my dilemma, and I feel like it's a common one.

I just built a page in CSS and xhtml, just setting up the front end crap. The problem is if I minimize the browser window, or any browser's window for that matter, the page doesn't scroll to fit the rest of the material, elements move around.

I'm not quite sure how to just set up the CSS so that the whole page is completely fixed in place.

How do I use CSS to keep everything in place, no matter how I adjust the window?

Thanks,

Blake C.
blakec is offline   Reply With Quote
Old Sep 28th, 2011, 6:16 PM   #2
chris0
Programmer
 
Join Date: Sep 2011
Posts: 32
Rep Power: 0 chris0 is on a distinguished road
Re: CSS Position Problem

this thread could be helpful
http://www.programmingforums.org/thread38527.html

-----

use Absolute Positioning
example

h2
{
position:absolute;
left:100px;
top:150px;
}
chris0 is offline   Reply With Quote
Old Oct 3rd, 2011, 4:00 AM   #3
macky
Programmer
 
Join Date: Nov 2010
Location: Cebu City Philippines
Posts: 60
Rep Power: 0 macky is an unknown quantity at this point
Re: CSS Position Problem

put all your html codes in a one table..
macky is offline   Reply With Quote
Old Oct 5th, 2011, 4:21 PM   #4
blakec
Newbie
 
Join Date: Oct 2010
Posts: 5
Rep Power: 0 blakec is on a distinguished road
Re: CSS Position Problem

Well my site is already in absolute position.

I have forms on the page as well to connect to my database, but those go everywhere if i resize too.
blakec is offline   Reply With Quote
Old Oct 5th, 2011, 11:38 PM   #5
macky
Programmer
 
Join Date: Nov 2010
Location: Cebu City Philippines
Posts: 60
Rep Power: 0 macky is an unknown quantity at this point
Re: CSS Position Problem

just put it in a table...

for example
.container{
width:980px;
margin 0 auto;

}

something like this then all your html codes shall be put in one table in .container
macky is offline   Reply With Quote
Old Oct 6th, 2011, 1:04 AM   #6
titaniumdecoy
Programming Guru

 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Location: California
Posts: 1,535
Rep Power: 14 titaniumdecoy will become famous soon enoughtitaniumdecoy will become famous soon enough
Send a message via AIM to titaniumdecoy
Re: CSS Position Problem

Use a div, not a table. Tables should be used for tabular data, not layout.
titaniumdecoy is offline   Reply With Quote
Old Oct 6th, 2011, 2:17 AM   #7
macky
Programmer
 
Join Date: Nov 2010
Location: Cebu City Philippines
Posts: 60
Rep Power: 0 macky is an unknown quantity at this point
Re: CSS Position Problem

yah that's what i mean put it in a div
macky is offline   Reply With Quote
Old Oct 6th, 2011, 2:17 AM   #8
macky
Programmer
 
Join Date: Nov 2010
Location: Cebu City Philippines
Posts: 60
Rep Power: 0 macky is an unknown quantity at this point
Re: CSS Position Problem

and css
macky is offline   Reply With Quote
Old Oct 6th, 2011, 3:24 PM   #9
blakec
Newbie
 
Join Date: Oct 2010
Posts: 5
Rep Power: 0 blakec is on a distinguished road
Re: CSS Position Problem

Okay cool i fixed it thanks people.
blakec is offline   Reply With Quote
Old Oct 27th, 2011, 5:41 AM   #10
stevemack
Steve Mack
 
Join Date: Mar 2011
Posts: 23
Rep Power: 0 stevemack is on a distinguished road
Re: CSS Position Problem

use position:absolute; so that the size stays / fits accordingly to the browser sizes.
stevemack is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Problem with rounded corners in chrome johnsdk HTML / XHTML / CSS 1 Aug 30th, 2011 5:48 PM
css fields problem ravi951 HTML / XHTML / CSS 0 Aug 11th, 2011 7:14 AM
Help with CSS Problem TheDJ HTML / XHTML / CSS 3 Mar 2nd, 2011 5:18 PM
CSS template problem with Joomla, please help josh305 HTML / XHTML / CSS 0 Dec 29th, 2010 3:59 PM
problem in css desperateboy HTML / XHTML / CSS 2 Oct 27th, 2007 7:29 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:05 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC