layout

Whats a good standard code layout for a php application

Without using a big framework whats a good standard starting layout for code being written in php? update: Directory layout, code flow, etc....

How do I display database query statistics on Wordpress site?

I've noticed that a few Wordpress blogs have query statistics present in their footer that simply state the number of queries and the total time required to process them for the particular page, reading something like: 23 queries. 0.448 seconds I was wondering how this is accomplished. Is it through the use of a particular Wordpre...

Font-dependent control positioning

I'd like to use Segoe UI 9 pt on Vista, and Tahoma 8 pt on Windows XP/etc. (Actually, I'd settle for Segoe UI on both, but my users probably don't have it installed.) But, these being quite different, they really screw up the layout of my forms. So... is there a good way to deal with this? An example: I have a Label, with some blank spa...

Positioning controls in the middle of a CheckBox

THis is a followup to my previous question "Font-dependent control positioning." It's an attempt to solve the real problem behind that question, perhaps in ways different than the one I was asking about. Example of the problem statement: I want a checkbox that says "Adjust prices by <X> <Y> after loading," where <X> is a number---adjust...

Directory layout for pure Ruby project

Hi! I'm starting to learn ruby. I'm also a day-to-day C++ dev. For C++ projects I usually go with following dir structure / -/bin <- built binaries -/build <- build time temporary object (eg. .obj, cmake intermediates) -/doc <- manuals and/or Doxygen docs -/src --/module-1 --/module-2 -- non module specific sources, like main.cp...

What is the best way to position a div in css?

I'm trying to place this menu: <div class="left-menu" style="left: 123px; top: 355px"> <ul> <li> Categories </li> <li> Weapons </li> <li> Armor </li> <li> Manuals </li> <li> Sustenance </li> <li> Test </li> </ul> </div> on the left hand side of the page. The ...

DIV's vs. Tables or CSS vs. Being Stupid

I know that tables are for tabular data, but it's so tempting to use them for layout. I can handle DIV's to get a three column layout, but when you got 4 nested DIV's, it get tricky. Is there a tutorial/reference out there to persuade me to use DIV's for layout? I want to use DIV's, but I refuse to spend an hour to position my DIV/SPA...

Are liquid layouts still relevant?

Now that most of the major browsers support full page zoom (at present, the only notable exception being Google Chrome), are liquid or elastic layouts no longer needed? Is the relative pain of building liquid/elastic layouts worth the effort? Are there any situations where a liquid layout would still be of benefit? Is full page zoom the ...

Whats a liquid layout?

My designer keeps throwing out the term "liquid" layout. What does this mean? Thanks for the clarification, I have always just called this a percentage layout, and thought he was saying that the pieces could be moved around, and that was liquid ...

How to put text in the upper right, or lower right corner of a "box" using css

See the following. How would I get the "here" and "and here" to be on the right, on the same lines as the lorem ipsums? Lorem Ipsum etc........here blah....................... blah blah.................. blah....................... lorem ipsums.......and here ...

Why not use tables for layout in HTML?

It seems to be the general opinion that tables should not be used for layout in HTML. Why? I have never (or rarely to be honest) seen good arguments for this. The usual answers are: It's good to separate content from layoutBut this is a fallacious argument; Cliche Thinking. I guess it's true that using the table element for layout h...

Best way to implement a 3-column website using <DIV> tags?

I'm developing a 3-column website using a layout like this: <div id='left' style='left: 0; width: 150px; '> ... </div> <div id='middle' style='left: 150px; right: 200px' > ... </div> <div id='right' style='right: 0; width: 200px; '> ... </div> But, considering the default CSS 'position' property of <DIV>'s is...

How to stretch an HTML table to 100% of the browser window height?

I'm using a table to design the layout of my web page. I want the table to fill the page even if it doesn't contain much content. Here's the CSS I'm using: html, body { height: 100%; margin: 0; padding: 0; } #container { min-height: 100%; width: 100%; } And I place something like this in the page code: <table id=...

Converting Table Layout To Div

I'm implementing a comment control that uses an ASP.Repeater to display each comment. The comment itself is currently displayed using a table to divide up some images to display the comment in a bubble. I know that tables are supposed to be the epitome of evil for design layout, and really expensive to display for the browser, but I'm ...

On a wiki, is it acceptable to restructure people's headings?

I dislike the fact that people use h3 rather h1, or skip a level just because of the way it looks. IMHO, headings signify document structure, rather than layout. The layout is just a side effect, customizable through themes. Having "wrong" heading levels also makes it more difficult to generate proper TOCs and/or export to other formats...

Why do you not declare several variables of the same type on the same line?

Why is it bad practice to declare variables on one line? e.g. private String var1, var2, var3 instead of: private String var1; private String var2; private String var3; ...

Is it bad design to use table tags when displaying forms in html?

I keep hearing that div tags should be used for layout purposes and not table tags. So does that also apply to form layout? I know a form layout is still a layout, but it seems like creating form layouts with divs requires more html and css. So with that in mind, should forms layouts use div tags instead? ...

Which Layout Manager do you use?

What java GUI layout manager does everyone use? Lately, I have been using MigLayout, which has some powerful component controls. Just wanted to see what other developers are using other than the standard JDK ones. ...

WPF animation of items between layouts?

I have two different ways of displaying items within a WPF application. The first uses a I have two different ways of displaying items in a WPF application. The first uses a WrapPanel and the second a vertical StackPanel. I can switch between the two ways of displaying my items by switching the host panel between the two types. This does...

positioning three divs with css

Who likes riddles? ;) I have three divs: <div id="login" /> <div id="content" /> <div id="menu" /> How would I define the CSS styles (without touching the html) to have the menu-div as the left column, the login-div in the right column and the content-div also in the right column but below the login-div. The width of every div is f...