hide div tag on mobile view only?

You will need two things. The first is @media screen to activate the specific code at a certain screen size, used for responsive design. The second is the use of the visibility: hidden attribute. Once the browser/screen reaches 600pixels then #title_message will become hidden. @media screen and (max-width: 600px) { #title_message { visibility: hidden; clear: … Read more

css display:table not displaying the border

You need to add border-collapse: collapse; to the .table class for it to work like this: <html> <style type=”text/css”> .table { display: table; border-collapse: collapse;} .tablerow { display: table-row; border: 1px solid #000;} .tablecell { display: table-cell; } </style> <div class=”table”> <div class=”tablerow”> <div class=”tablecell”>Hello</div> <div class=”tablecell”>world</div> </div> <div class=”tablerow”> <div class=”tablecell”>foo</div> <div class=”tablecell”>bar</div> </div> … Read more

Two divs side by side – Fluid display [duplicate]

Try a system like this instead: .container { width: 80%; height: 200px; background: aqua; margin: auto; padding: 10px; } .one { width: 15%; height: 200px; background: red; float: left; } .two { margin-left: 15%; height: 200px; background: black; } <section class=”container”> <div class=”one”></div> <div class=”two”></div> </section> You only need to float one div if you … Read more

Fluid width with equally spaced DIVs

See: http://jsfiddle.net/thirtydot/EDp8R/ This works in IE6+ and all modern browsers! I’ve halved your requested dimensions just to make it easier to work with. text-align: justify combined with .stretch is what’s handling the positioning. display:inline-block; *display:inline; zoom:1 fixes inline-block for IE6/7, see here. font-size: 0; line-height: 0 fixes a minor issue in IE6. #container { border: … Read more

Fluid or fixed grid system, in responsive design, based on Twitter Bootstrap

When you decide between fixed width and fluid width you need to think in terms of your ENTIRE page. Generally, you want to pick one or the other, but not both. The examples you listed in your question are, in-fact, in the same fixed-width page. In other words, the Scaffolding page is using a fixed-width … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)