Advanced Minds

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
100% fluid margins noob - starting with the overall container layout - fluid columns but with min/max widths (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: 100% fluid margins noob - starting with the overall container layout - fluid columns but with min/max widths
#4521
Ben C (Visitor)
Click here to see the profile of this user
Birthdate:
100% fluid margins noob - starting with the overall container layout - fluid columns but with min/max widths  
No such problem with IE I'm surprised IE's box model is still that badly wrong from the point of view of the CSS specification. Are you talking about IE6?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4522
Wes Groleau (Visitor)
Click here to see the profile of this user
Birthdate:
100% fluid margins noob - starting with the overall container layout - fluid columns but with min/max widths  
You've given it width: 100%, which makes its content area 100% the width of its container. Add its padding, borders and margins, and it's a little bit wider. I've run into browsers that thought 100% meant the width of the screen no matter what the window width was.  
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4523
Ben C (Visitor)
Click here to see the profile of this user
Birthdate:
100% fluid margins noob - starting with the overall container layout - fluid columns but with min/max widths  
You've given it width: 100%, which makes its content area 100% the width of its container. Add its padding, borders and margins, and it's a little bit wider. I've run into browsers that thought 100% meant the width of the screen no matter what the window width was.   It does sometimes mean width of the viewport since the top-level containing block is the viewport.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4524
dorayme (Visitor)
Click here to see the profile of this user
Birthdate:
100% fluid margins noob - starting with the overall container layout - fluid columns but with min/max widths  
OK, I've uploaded version .01 of my html/css file here: http://hansbkk.googlepages.com/layout00a01.html Some misc remarks: This is a bad start: body { ... font-size: .8em; ... } Either simply remove it or use font-size: 100%; You can specify different font sizes later if you must. Next, no point in you using <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional..., use 4.01 Strict. Get rid of all the _java_script__ for the moment till you sort out your problems. In your css, you can use shorthand like border: 2px solid #000; instead of 3 separate instructions every time. Get rid of the _meta_ container . this is not needed for the sort of design you would like. Get rid of the sub footer because it is too silly. A footer is a footer and that is the end of the matter. <g Get rid of sidebar left and right completely. Let the magic of tables do the work for you. You want the 3 col table to span the big container that you want a nice border around and canvas sowing. Fine. Give the container a bit of top margin. Your footer will ensure it needs no special bottom margin. Give the conatiner aut side widths and a width of about 90% but a max-width of say 1400px, and leave it at that. Don't fuss. let your 3col table have a width of 100% (of the main container) and leave the specs for widths of cells alone. Instead, just be sensible about what you pout in the side bars. A list of navigation _link_s that are sensibly short is fine and won't take up width space unnecessarily. leave the width. The width of the left cell will take carew of itself. Ditto the other 2 cells. The main middle one will simply have content and a goodly bit of it so it will take up the lions share mostly anyway. Put a bit of real content, like a few paras of text in the middle cell and forget all about all the stuff you are doing and you will see what i mean. Sorry, but this sort of thing: <div class= block block-block id= block-block-5 is plain crazy confusing. Simplify all. In fact get rid of nearly all your ids and classes and html. (I was down to just css and all was looking simpler and better already: body {margin: 0;padding: 0;} #container { margin: auto; border: 3px solid black; padding: 5px; width: 90%; max-width:1400px; } #logo, #menu, #content-container, #footer { border: 2px solid #000; margin: 5px; padding: 5px; } table {width:100%;} td {border: 1px dotted #000;} )
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4525
Wes Groleau (Visitor)
Click here to see the profile of this user
Birthdate:
100% fluid margins noob - starting with the overall container layout - fluid columns but with min/max widths  
I've run into browsers that thought 100% meant the width of the screen no matter what the window width was.   It does sometimes mean width of the viewport since the top-level containing block is the viewport. Wider than the browser window?  Makes no sense. I thought CSS was invented by smart guys. The one I was talking about was an older version of Netscape. Tables specified at 100% were the width of the screen.  Make the browser full-screen and you still have to scroll the width of the _frame_ and scrollbar.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4526
Ben C (Visitor)
Click here to see the profile of this user
Birthdate:
100% fluid margins noob - starting with the overall container layout - fluid columns but with min/max widths  
The one I was talking about was an older version of Netscape. Tables specified at 100% were the width of the screen.  Make the browser full-screen and you still have to scroll the width of the _frame_ and scrollbar. I'm a bit confused now. The browser window is the viewport, and that's all the browser knows about. Surely it has no idea how big your monitor is. Width: 100% often means set the width to the width of the viewport. If the element has horizontal padding, borders or margins, you will get scrollbars, no matter how large you make the viewport. But if I understand right, you're saying a table at 100% in this version of Netscape meant the size of the monitor . So if the viewport was quite small, I had to scroll a lot, and if it was maximized, only a bit? In other words the table was sized with respect to the monitor itself, not with respect to the browser window?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
sprawdz autoryzacje no auth brak autoryzacji brak autoryzacji 905
election news channel 8 news car comapnies sample cover letter online fantasy games