I am using MVC 1.0 on one site (but will be upgraded soon to 2.0).
A top header on the site and several boxes (UL elements) that contain information included.
I want to use the full width of the browser to take advantage of widescreen monitors, so that the number of boxes in each row depends on the browser window width.
The problem is that there is no fixed height of the box, the height depends on the content in each box.
The height of each row should be determined by the largest box on that line
What is the best way to do this?
I hope my question gets a sensation, it is a bit difficult to understand =)
I'm not sure it is possible using CSS only. However you can use this javascript.
class = "box wrapper" & gt; & Lt; Div id = "box1" class = "a-box" & gt; & Lt ;! - content - & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "box-wrapper" & gt; & Lt; Div id = "box2" class = "a-box" & gt; & Lt ;! - content - & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "box-wrapper" & gt; & Lt; Div id = "box3" class = "a-box" & gt; & Lt ;! - content - & gt; & Lt; / Div & gt; & Lt; / Div & gt; After that, prepare the following document:
var maxheight = $ (".a-box"). Eq (0) height (); $ (". A-box"). Each (function () (if (maxheight
Popular posts from this blog
I would like to capture all incoming HTTP packets on my machine. To do this, I am using SharpPcap which is a WinPcap The cover is. SharpPcap works very well, but it captures TCP packets and what it wants to do for me is a very low level. Does anyone know how can I easily get full HTTP requests / reactions from all these TCP packets? Thanks SharpPcap is already able to capture the packet in the same way That's what the virus does (just in the code instead of the GUI). And you can either either parse them directly or you can put them in the drive in the common .pcap file format. The steps to parse the capture are: Open a connection at any time Loop a while Or start capturing using an event callback Parsing the raw packet for the type you want If you are reading .PPP dump files In addition to calling you an offline capture reader is almost the same, there is no need to select an interface, and you can set the majority There is no need to do the modes. All st...
By using Wordpress I have created a multiple selection box so that users can select categories to exclude. When the page is initially loaded, I see my predefined default option. However, when I select a new value and I save ... I only see the word "Array" and have not chosen anything else? & lt; Class = "amultiple" id = "& lt; php echo $ value ['id'] ;? gt;" name = "& gt; php echo $ value ['id'] ;; gt; []" Multiple = "multiple" size = "8" & gt; & Lt ;? Php global option; Foreign currency ($ value as value $) {if (get_settings ($ value ['id']) === FALSE {$$ value ['id'] = $ value ['std']; } And {$$ value ['id'] = get_settings ($ value ['id']); }} $ Ranges = & amp; Amp; Categories ('type = post & orderbiz = name & amp; hide_empty = 1'); If ($ ranges) {$ ex_cat = implode (',', $ tt_cat_exclude); Forex Currency ($ range a...
I do not understand why this script does not work. It has something to do within AJAX PostScript / Function. Right now, when I submit my form, it runs php code on the same page. What it should do, send the values of the form for Project_Azax.fp, then there will be a refund of success on the page which is correct or false. $ (document) .ready (function () {$ ('div # didIt'). Hide (); $ ('form [name = adminForm]'). Submit (function () ($ {'.post' ('/ project_ajax.php', {action: $ ('[name = action]') Val (), pId: $ ('[name = pId]'). Val (), name ('[Name = name]'. Val (), url: $ ('[url = url]'). Val (), summary: ('[summary = summary]'). Val ()}, Function (data) {if (data.success) {$ ('div # didIt') .Sliddown ('slow');} and {warning ('unsuccessful SA!');}}, 'Jason'); return false ;});}); What is the code for project_ajax.php below ... if ($ _ POST ['action'] == ...
Comments
Post a Comment