layout

What are some alternatives to CSS to style your websites in HTML?

After asking this question, it appears that a lot of CSS hacks and tricks are needed to achieve something that simple. People have said that CSS is broken. So I wonder now, if not CSS, what are some alternatives to creating advanced html structure and markup/layout? Are we left with tables and framesets? Or is there something else? ...

Getting property of zend view using a helper called in the layout script

I've written a helper in order to make my main nav. Part of this helper checks if there is a user logged in by checking if a user has been assigned to the view if($this->view->user) { //do stuff } However when I call this helper in my layout script it is unable to access $this->view->user; it has NULL value (although var_dump($this->v...

PHP Symfony Framework - Use specific layout for a model

Hi there! Can anyone tell me how can I define and use a specific layout for a model (not a template)? I would like to do this for my custom 404 error page. Thanks in advance, Best regards! ...

css layout question: a height 100% div with two fixed height divs

Here is the HTML code: <div id="header"> </div> <div id="container"> </div> <div id="footer"> </div> And here is what I want to achieved, even though it's not valid CSS, but I think you will understand my point: html,body { min-width:800px; max-width:1680px; width:100%; height:100% } #header { width:100%; height:100px; back...

How to layout form elements

Are there any good resources for the layout of elements in a form? Possibly large forms as they are common in applications for highly specialised users. I am talking about choices like: go down in columns first, then right to the nex column vs. go right in rows first, then down to the next row what to do in the presence of especially ...

css layout question: a height 100% div (more divs inside as well) with two fixed height divws

Here is the HTML Code: <div id="header"> </div> <div id="container"> <div id="leftbar"> </div> <div id="content"> </div> </div> <div id="footer"> </div> And here is what I want to achieved, even though it's not valid CSS, but I think you will understand my point: html,body { ...

Android: When the keyboard pops up, the layout is invisible. How do I solve this?

In my layout, there is a TextView at the bottom of the screen. The problem is that when I click inside the text box to type something, the keyboard covers the text box as a result of which I am not able to see what's happening... Is there any solution for this? Here's my layout... <?xml version="1.0" encoding="utf-8"?> <LinearLayout xml...

How to right justify on the same line in LaTex?

I am trying to define the layout for a thesis approval page. So the institute layout has something like "name ..... affiliation _" on one line where "..." is a horizontal fill and affiliation is right justified. How to create such a layout in Latex/Tex? ...

Which Rails Layout is Used after_filter

I need an after filter that will perform a query depending on what layout is chosen by the user for the current page. Is there a way to see what layout is being used before the page is rendered? Thanks. ...

Bottom bar on Android

How can I have a layout where there is a view occupying most of the top of the screen and a bottom bar below it in the bottom of the screen without setting size for top view directly? ...

How to layout widgets using DockLayoutPanel and UiBinder in GWT 2.0?

I'm trying to get a simple layout working under GWT 2.0 using UiBinder. The layout I'm trying to get is one that mimic Java's BorderLayout in where you can specify different panels in the north, south, east, west and center directions; for that I'm using DockLayoutPanel. I would like to get a header and footer, both with fixed width. The...

Changing only the home page layout in cakephp

If my whole site is using the default.ctp layout specified in apps/view/layouts/default.ctp, how do I change only the home page layout to use homepage.ctp and leave the rest of the site using default.ctp? ...

How to change a Zend Layout in module/controller to layout stored in another module?

I am working in the error controller of my default module but I have other modules/controllers that have errors. Their errors are sent to the default/error controllers but the layouts that are used are the ones from the module that threw the error. I want to only use the default modules layout for all errors. ...

Building/using runtime generated layout XML in Android

I am currently working on a project which requires me to use an XML document to render a form on an Android device. The form must be fetched and displayed at run-time. I am wondering if there is a way to tag the form XML, transform it using XSLT into an Android layout XML, and then have the device render it. ...

Separation of SOA services

Hi, I am looking to write some webservices. What defines one unit of "service". I note that as apart of one project you can have multiple .svc service files. How do you normally segment your services? For example, a banking app: Would you have one service (.svc) for? Client AddClient(Client newClient) DeleteClient(Client client) A...

Android listview and lineralayout under one scrollbar

I want to create the following layout Section '1' is linear layout contains imageview and textview Section '2' is listview with customze items list I want to place both components under single verticle scrollbar, means i do not want scrollbar only for listview, currently i am achieving following layout through placing things in table...

How to have a specific component resize based on available, visible space?

Hi all, In my application, I have a layout similar to what is shown below: @@@@@@@ XXXXXXX*** XXXXXXX*** XXXXXXX*** %%%%%%% In this layout, X is a JTable. The other components can remain the same size. Is there a layout or strategy that will have the JTable (X) resize based on available screen size and have everything else stay on the...

java.lang.OutOfMemoryError: bitmap size exceeds VM budget - android - how many images?

Hi I am developing an android app and as I read all around and learned for myself, I cant have a lot of images on the screen at the same time or I will get an exception. The question is how many images or how many KB in images or how many layouts/images can I have at the same time in the screen. I know this is not the only thing that...

WPF How can you create a nice looking wave of letters

I have the need to create a wavey looking text object in my WPF app, and I was actually assuming that there would be a "bend along a path" type of options, but I dont see one at all in Blend. I found a tutorial that suggest you need to convert you text to a path letter by letter then rotate it around, but that is totally horrible in my ...

Centre a button in a Linear layout

I am using a linear layout to display a pretty light initial screen. It has 1 button that is supposed to centre in the screen both horizontally and vertically. However no matter what I try to do the button will top align centre. I have included the XML below, can some one point me in the right direction? Thanks <?xml version="1.0" e...