402 Posted Topics

Member Avatar for Dani

It's always good to tightening up your assets. You can also automate this (minifying, concatenation and such) with a task runner like [Grunt](http://gruntjs.com/) or [Gulp](http://gulpjs.com/) before you deploy to a live server. These days people recommend to load your [critical CSS](https://www.smashingmagazine.com/2015/08/understanding-critical-css/) (the CSS that's needed for your content above the …

Member Avatar for jkon
0
345
Member Avatar for Dani

I also thiink jQueryUI is dying slowly. If you want to rely on third party integrations then better go to a payed alternative such as [KendoUI](http://www.telerik.com/kendo-ui) or even the free [Dojo UI library](http://dojotoolkit.org/documentation/#widgets). It looks like the latter has still an active userbase, update cycle and support.

Member Avatar for gentlemedia
0
293
Member Avatar for Dani

Regarding the new navigation menu when I want to click a link/button that's at the top of the page I can't, because the navigation appears. You use opacity: 0 and on hover you set the opacity to 1 so that it appears. Perhaps it's a suggestion to show that navigation …

Member Avatar for Dani
0
683
Member Avatar for davy_yg

It's because there's also an index.html in that 'bestshop' directory and that's the one that gets loaded when accessing www.advance-web-studio.com/bestshop/ http://www.advance-web-studio.com/bestshop/index.html As far as I know loads Apache by default an index.html before an index.php unless you tell otherwise (a diffrent order) in a .htaccess file. If you want to …

Member Avatar for lucweb
0
264
Member Avatar for vmars

You can position elements with CSS wherever you want. The (html) source order of your elements does not has to be the same order visually. In your case the CSS `float`, `left` and `margin` properties positioned the main content and sidebars where you see them on the screen. It's usually …

Member Avatar for Dani
0
442
Member Avatar for gentlemedia

I'm trying to retrieve the values of checkboxes in a custom post type. My complete function: function getTeam() { global $post; $team = new WP_Query(); $team->query('post_type=coaches'); $workshops = get_field('workshops'); if ($team->found_posts > 0) { echo '<ul>'; while ($team->have_posts()) { $team->the_post(); $listTeam = '<li>'; $listTeam .= '<a href="#" class="js-modal">'; $listTeam .= …

Member Avatar for gentlemedia
0
424
Member Avatar for gentlemedia

I'm not sure why it returns Array, because as far as I know I don't retrieve the profile images from an array. See the following function. function getTeam() { global $post; $team = new WP_Query(); $team->query('post_type=coaches'); if ($team->found_posts > 0) { echo '<ul>'; while ($team->have_posts()) { $team->the_post(); $listTeam = '<li>'; …

Member Avatar for gentlemedia
0
781
Member Avatar for shany0786

Or embed as an object into your pages with an iframe and a download link as fallbacks. <object data="/pdf/your-pdf.pdf" type="application/pdf" width="100%" height="100%"> <iframe src="/pdf/your-pdf.pdf" width="100%" height="100%" style="border: none;"> This browser does not support PDFs. Please download the PDF to view it: <a href="/pdf/your-pdf.pdf">Download PDF</a> </iframe> </object> There is also JavaScript …

Member Avatar for gentlemedia
0
300
Member Avatar for davy_yg

> Cek this out: http://gsa-constructionspecialist.com/experiences Wow! Those colours! ¯\_(ツ)_/¯

Member Avatar for gentlemedia
0
3K
Member Avatar for Carsten_1

And perhaps it's a better idea to ask this at the Arduino forum to get a quicker answer, because I really had to google what Arduino was :) https://forum.arduino.cc/

Member Avatar for diafol
0
257
Member Avatar for gentlemedia

Ok... back to my PHP/Wordpress adventure. In my testimonials post type I have added 5 custom fields and 2 fields are not mandatory which means they can be empty. One of them is the url field which I want to output within my while loop with a different HTML when …

Member Avatar for cereal
0
2K
Member Avatar for gentlemedia

Aight folks! So I'm trying to do some custom coding within Wordpress and my plan is to create custom post types which I want to display within custom widgets. I thought that would be fun for a learning experience.... ahum... and I wanted a widget/plugin that outputs some proper semantic …

Member Avatar for gentlemedia
0
592
Member Avatar for Susan_5

You use the checkbox hack and what I know is that pseudo-class + general (`+`) / adjacent (`~`) sibling combinators doesn't work on Android below 4.1.2. but there is a solution for that. body { -webkit-animation: bugfix infinite 1s; } @-webkit-keyframes bugfix { from {padding:0;} to {padding:0;} } I've used …

Member Avatar for gentlemedia
0
295
Member Avatar for davy_yg

> Is that the only way? And the fastest way is to code it with bootstrap? I remember from previous threads that when you even use Bootstrap to create responsive layouts it took you ages, so I'd recommend that you use a premade responsive (Bootstrap) theme/template and change the text …

Member Avatar for jkon
0
299
Member Avatar for Joseph_26

You have this `<?phpinclude 'includes/header.php'/?> ` which should be this `<?php include 'includes/header.php'; ?> `

Member Avatar for gentlemedia
0
221
Member Avatar for Siberian

You probably don't need this webfont stuff. I've deleted thiose lines and it keeps on swinging :) lib.webFontTxtInst = {}; var loadedTypekitCount = 0; var loadedGoogleCount = 0; var gFontsUpdateCacheList = []; var tFontsUpdateCacheList = []; lib.ssMetadata = []; lib.updateListCache = function (cacheList) { for(var i = 0; i < …

Member Avatar for gentlemedia
0
337
Member Avatar for mark_62

> What is the problem? Yes, I'm also curious what the problem is. I use Thunderbird too, but I didn't notice any 'problems'.

Member Avatar for Reverend Jim
0
191
Member Avatar for codemonkey88

I checked on my Mac in Chrome and the slider just works. Perhaps they have some JS from a Chrome extension they've installed that's interfering with your JS.

Member Avatar for codemonkey88
0
200
Member Avatar for Said_4

Nobody ever made or makes a `<list> <ul> <li>` menu not even in HTML4, but I guess you meant `<nav> <ul> <li>`. There is coming a `<menu> <menuitem>` but probably in HTML6... hehe

Member Avatar for Dani
0
143
Member Avatar for Jon_7

There is a pure css solution if you use custom data-attributes. HTML: <ul> <li lang="es" data-lang="Nuestros jugadores representan una variedad de fondos, países e idiomas.">Español</li> <li lang="zh" data-lang="我們的球員代表了各種背景,國家和語言。">中文</li> </ul> CSS: ul { list-style: none; margin: 0; padding: 0; } li[data-lang] { margin-bottom: .5rem;; cursor: pointer; } li[data-lang]:hover::after { content: " …

Member Avatar for gentlemedia
0
355
Member Avatar for Siberian

You can change/set the fill color of a path with CSS. .st0 { fill: blue; } You can also set the stroke color & width with CSS. .st0 { fill: blue; stroke: yellow; stroke-width: 2; }

Member Avatar for Siberian
0
898
Member Avatar for Luke_4

I use the @media print styles from HTML5 Boilerplate in my default CSS file. Perhaps it can come in handy for you too. /* ========================================================================== Print styles. Inlined to avoid the additional HTTP request: http://www.phpied.com/delay-loading-your-print-css/ ========================================================================== */ @media print { *, *:before, *:after, *:first-letter, *:first-line { background: transparent !important; color: …

Member Avatar for Luke_4
0
2K
Member Avatar for tejas_1
Member Avatar for phphp

If you set an opacity to an element then that element and its child elements will get that opacity. So either set an opacity on that image in Photoshop or whatever photo editor you use or you can use a pseudo element `(::before` or `::after`) for that background-image and set …

Member Avatar for gentlemedia
0
270
Member Avatar for phphp

Try to give it a z-index, because it might behind the #container div which has a min-height of 100% and a white background color. This might be covering the header. #header1 { width: 100%; font-size: 28px; font-weight: bold; font-style: oblique; position: fixed; z-index: 100; } Just to be sure I …

Member Avatar for gentlemedia
0
357
Member Avatar for Richard_35

> I find the demand for responsive sites a waste of time - phones now have bigger screens, and if you turn them from portrait view to landscape, most non-responsive sites work okay! Not necessarily true! Have a look at any websites' Google Analytics and you will be surprised how …

Member Avatar for gentlemedia
0
367
Member Avatar for f.krueger

> Not sure if I'd want a site that looked like that! Indeed! That sites loads, performs and displays horrendous. Such a big architect agency with such a lousy site :) The one responsible for slapping that piece on the Internet had clearly no clue what he was doing. On …

Member Avatar for f.krueger
0
880
Member Avatar for gentlemedia

I've noticed the last couple of weeks that a hard-refresh won't clear the cache anymore in Chrome... well to me and two clients of mine (we're all on a Mac by the way). Not sure either if there was an update to Chrome recently which might cause this now. Did …

Member Avatar for rproffitt
0
575
Member Avatar for Stefce

> Here is the full css code Those CSS blocks have nothing to do with the HTML of that image grid, so the error is not in there. You have a rule-set somewhere that might overriding that `margin-bottom`, because it should just work. See here; http://codepen.io/gentlemedia/pen/XNegPp With the browser developer …

Member Avatar for Stefce
0
510
Member Avatar for Aeonix
Member Avatar for Aeonix

In this case just float them, because you set fixed dimensions of 80px on them anyways so there's no need for using inline-block.

Member Avatar for Aeonix
0
285
Member Avatar for Aeonix

That is not possible without using `flexbox`, `grid` or javascript. If you use `floats` or `inline-block`, you'll need to set dimensions. You can get half of what you want by using `calc()` :) http://codepen.io/gentlemedia/pen/qqjRpy And mixing `floats` and `inline-block` on the same element is redundant, because `inline` elements, such as …

Member Avatar for rproffitt
0
344
Member Avatar for Aeonix

You can't have anchor tags within an anchor tag and think about it for a second... does it make sense? In order to show/hide the div while hovering the anchor, that div needs to be a sibiling of the anchor and not a child. Something like this: https://jsfiddle.net/gentlemedia/vc639va4/3/

Member Avatar for Aeonix
0
302
Member Avatar for Start4me

I'd recommend to set the fridge image as a background-image to an HTML element such as a div that will have the same dimensions as the image. Then you can nest other div tags within that div for your shapes and position them with floats and margins or with flexbox …

Member Avatar for Taywin
0
930
Member Avatar for Aeonix

You're getting way too specific with long selector chains like that which makes it imo harder to read and it will give you in the end specificity issues - https://css-tricks.com/specifics-on-css-specificity/ Also using ID's in your CSS is not recommended for specificity reasons too and the CSS applied to it is …

Member Avatar for diafol
0
308
Member Avatar for Aeonix

For starter I'd recommend to take out the onclick attribute from the HTML. Keep structure and behavior seperate. <input id="aaa" formaction="register.php" type="submit" value="Register" /> And then within `<script>` tags document.getElementById('aaa').addEventListener('click', function (e) { e.preventDefault(); // scrollTo here }); or with jQuery $('#aaa').on('click', function (e) { e.preventDefault() // scrollTo here })

Member Avatar for gentlemedia
0
373
Member Avatar for Dani

Shutterstock, Dreamtime, 123f and the likes do have them, but also http://www.freepik.com/free-photos-vectors/backdrop and perhaps at http://allthefreestock.com/

Member Avatar for diafol
1
496
Member Avatar for shany0786

And on a side note and off topic. The `datetime` attribute is specifically for the `time` element. <time class="metro_tmtime" datetime="2013-04-10 18:30"> <span class="date">1/4/13</span> <span class="time">17:20</span> </time> https://schema.org/docs/gs.html#advanced_dates

Member Avatar for gentlemedia
0
289
Member Avatar for jeffersonalomia

By default the arrows option is set to true, which means its shows the 'next' and 'prev' text links and not left & right arrows. Do you want left & right arrows instead of the text links, then you will have to put them in yourself either through CSS or …

Member Avatar for jeffersonalomia
0
2K
Member Avatar for rayearth_1

Wow... that is some ancient Dreamweaver way to mark-up a page. Not sure what you're after either, but if you want to override the default look of radio buttons (checked and unchecked) then you can do this with CSS, but looking at that mark-up it seems you've never heard of …

Member Avatar for gentlemedia
0
358
Member Avatar for koneill

Apple blocks autoplay of media (video or audio) in Safari on iOS by default and if you're going to use the `video` tag, then I'd recommend to convert your `.mov` file to `.mp4` instead, so that the video also plays in other browsers/devices.

Member Avatar for rproffitt
0
614
Member Avatar for Saro_1

I think it has to do with the mobile navigation. If I resize the browser window to narrow to the point where your mobile navigation (hamburger icon) reveals, then a refresh doesn't shows the unstyled navigation flickr. Does the mobile navigation gets populated with JS somewhere? EDIT: I see there …

Member Avatar for Saro_1
0
484
Member Avatar for mblan180131

I'm also not sure what you're after. You're talking about an iFrame, but have inserted a webview element into your HTML with an iFrame attribute. As far as I see (I'm not an Android developer) WebView is to load in an URL, but this goes via an XML layout file …

Member Avatar for Matt_17
0
451
Member Avatar for gentlemedia

I have the following which works fine for text inputs, textareas and selects with the class 'stored'. $(function() { $.each($('.stored'), function() { if(localStorage[$(this).attr('name')]) { $(this).val(localStorage[$(this).attr('name')]); } }); $('.stored').on('change', function() { localStorage[$(this).attr('name')] = $(this).val(), $(this).find('option:selected').val(); }); }); To store radio buttons or checkboxes with the class 'stored' in localStorage I've tried …

Member Avatar for gentlemedia
0
1K
Member Avatar for Himanshu Chawla

You will need to wrap your submenu items in an ul tag as well. The way you have it now is not valid HTML either. Then you could combine `visibillity: hidden` and `opacity: 0` to hide and `visibility: visible` and `opacity: 1` to show on `:hover`. Sometime ago another member …

Member Avatar for gentlemedia
0
590
Member Avatar for Azer_1

I do see a slight hick-up in the animation too. It is slight, because there's nothing else that could influence the animation (like a design as a background). Why not animating with CSS transform2D (`transform: translateX()`) instead of the `left` property? CSS transforms use their own rendering layer and therefore …

Member Avatar for gentlemedia
0
185
Member Avatar for Swapnali_2
Member Avatar for rproffitt
-1
179
Member Avatar for Serge_1

Wow! DW and its extensions still spits out some messy HTML & CSS :) I see a fixed width and height in px as inline CSS, so like this it will never get responsive. Although I read on their site that the rotator can be responsive, but throught the GUI …

Member Avatar for Serge_1
0
291
Member Avatar for BryanA917

I'm not into this, but you might want to have a look into Webgl. https://docs.webplatform.org/wiki/webgl https://www.chromeexperiments.com/webgl

Member Avatar for gentlemedia
0
475
Member Avatar for ZeroEddy

@rynatroop is right when setting a height of 100% on the container, then you should set a 100% height on the html and body tag too. Otherwise it takes 100% of 0 which is 0. To overcome this you can set the container height to 100vh which means it takes …

Member Avatar for ZeroEddy
0
464

The End.