Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lyndsey

Privileged
  • Joined

  • Last visited

Solutions

  1. Lyndsey's post in Rogue Character on page was marked as the answer   
    It's in your <head> tag near the carousel css:
    <link rel="stylesheet" href="css/owl.carousel.css"><
  2. Lyndsey's post in Custom button to launch modal was marked as the answer   
    You can simply set the btn variable to the element you want to target, for example:
    var btn = document.querySelector(".sidebtn"); Demo: https://jsfiddle.net/LyndseyB/3p70zz8n/3/
  3. Lyndsey's post in Ajax - How do I display validation error to the user? (validating on an external php file) was marked as the answer   
    You need to return a message from the PHP file. This message should then be available in the success/complete callback of the AJAX request.
     
    Here is an example using jQuery:
    $.ajax({ type: 'POST', url: ajaxUrl, data: data, dataType: 'html', // this is the return data type. You could alternatively use json, for example success: function (msg) { // msg is what is returned from your ajaxUrl (PHP page) // when the ajax request is successful (status 200) console.log(msg); } }); And your PHP file would echo something, e.g.
    $msg = "Congratulations!"; echo $msg; You could also return multiple messages using JSON, for example.
  4. Lyndsey's post in Testing video looping host - forcing fullscreen was marked as the answer   
    They have wrote a simple function that detects the window width and height, then sets the video values accordingly. Here is their function, using a combination of vanilla JS and jQuery:
    CoubEmbed.prototype.resizePlayer = function() { var height, width; console.log("CoubEmbed", "Resize."); width = $(window).width(); height = $(window).height(); this.viewer.css({ width: width, height: height }); return $('object').attr('width', width).attr('height', height); }; You can do the same with a few lines of JavaScript:
    (function() { var width = window.innerWidth, height = window.innerHeight, player = document.getElementById('coubVideo'); player.style.width = width + 'px'; player.style.height = height + 'px'; }()); I have created an example, here: http://jsfiddle.net/LyndseyB/sbLoxp2w/
     
    Hope this helps
  5. Lyndsey's post in Javascript was marked as the answer   
    Ok. My fault, sorry. Move the script to the bottom of the page, just before the end body tag:
    <script> (function() { var imgs = [ "http://oi57.tinypic.com/245njlt.jpg", "http://oi59.tinypic.com/245wk5h.jpg" ], swap = document.querySelector(".js-image-swap"), counter = 0; setInterval(function() { swap.style.backgroundImage = "url('" + imgs[counter] + "')"; counter = (counter === imgs.length-1) ? 0 : counter+1; }, 10000); })(); </script> </body> </html>
  6. Lyndsey's post in ATTRIBUTE was marked as the answer   
    The href attribute defines the URL to open when the link is clicked. https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Attribute/href
     
    It can also be used as an anchor to another element on the screen, by placing the ID of the element you want to anchor to inside the href. Here is an example:
     
    http://codepen.io/anon/pen/LVVRWa
     
     
    The src attribute is the source of the image file or content you want to display. https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Attribute/src
  7. Lyndsey's post in Vertically align text? was marked as the answer   
    You have a few options here.
     
    To use vertical-align: middle, you need an inline element, such as an image, or a table cell. One option is to create a div and give it a property display:table-cell along with vertical-align:middle.
     
    Another option, however, is to create a div wrapper with a child element positioned absolutely to the middle of the parent.
     
    Here is a JsFiddle with examples of both: http://jsfiddle.net/aMvaV/
     
    The first div (div.one) is displayed as a table-cell.
     
    The second div (div.two) is positioned relatively and has an absolutely positioned child element that is positioned 50% top. Using this approach, you'd typically want the top value to be 50% minus half of the height of the content div (for when the content spans multiple lines).
     
    Hope this helps.
  8. Lyndsey's post in Phone Number Links Not Colouring in Browser? - Live Example was marked as the answer   
    The issue seems to be related to an override in line 73 of styles.css
     
    a[href^="tel:"] { color: inherit; text-decoration: none; } The color:inherit is causing the issue.
  9. Lyndsey's post in Dreamweaver CS5 table don't look like what it should have to look like on the final phase was marked as the answer   
    Hello Paperboy,
     
    That's good news No problem at all.
     
    In answer to your questions, yes I can delete the Fiddle and feel free to ask me anything
  10. Lyndsey's post in CSS: element positioning quandary was marked as the answer   
    Hello M,
     
    This is related to your CSS selector being different to the corresponding HTML DIV it's supposed to be referencing.
     
    This topic already has a response on the other forum, but here's the resolution here in any case....
     
    Your CSS is looking at #main-content, but your DIV actually has an ID of #main_content. Just change the CSS to #main_content.
     

  11. Lyndsey's post in Whitespace at top of page (Help Needed) was marked as the answer   
    You have a stray <br /> tag after a closing <script> block, just remove it here:
     
    <script src="http://use.edgefonts.net/asap:n4:default;alike:n4:default.js" type="text/javascript"></script><br>
  12. Lyndsey's post in ckEditor only showing on one page. was marked as the answer   
    Why don't you output a class and call the ckEditor on that class?
     
    According to this link: http://nightly.ckeditor.com/13-07-29-13-05/full/samples/replacebyclass.html, all you need to do is add a class=ckeditor to your textarea(s).
     
    <textarea class="ckeditor"></textarea>  
    You won't have to worry about ID's then
  13. Lyndsey's post in Combining Button, Title and Styled Tooltip was marked as the answer   
    What you need to do is give each button the same class. What you have at the moment is fine as all of the buttons have a class of 'noisy', see below:
     
    <input type="button" class="noisy green" value="Mrs J, East Staffs..." title="...your service is wonderful and great value for money - thank you for tracing my family back to the 1700s">  
    Also, don't use a 'submit' input type for this; a button will do just fine as it's not going to interfere with your form and try and submit anything (unless that is what you want ).
     
    So, now all you need to do is include the jQuery library followed by the jQuery plugin code and call the function. Like this:
     
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="link_to_plugin_code.js"></script> <script> $(function() { $('.noisy').lbTooltip(); //this tells the tooltip to run off all buttons with the class 'noisy' }); </script> Hope this helps.
  14. Lyndsey's post in Css mess with div padding was marked as the answer   
    A <h1> tag is a block-level element by default which is why there is additional space around the element.
     
    To resolve this, you could add a display:inline to the element, like this:
     
    h1 { display:inline; }  
    Further information is here: http://www.webdesignfromscratch.com/html-css/css-block-and-inline/
     
    Hope this helps
    Any issues, just let me know
  15. Lyndsey's post in What design element is this? was marked as the answer   
    Looks like it's done using a jQuery plugin called jPreLoader. Here is the page (including demo): http://www.inwebson.com/jquery/jpreloader-a-preloading-screen-to-preload-images/.
     
    This is the code that the user has used to create the effect (I've just snipped it from his site):
     
    // Preload the page with jPreLoader $('body').jpreLoader({ splashID: "#jSplash", showSplash: true, showPercentage: false, autoClose: true, splashFunction: function() { $('#ball, #ball-0, #ball-1').delay(250).animate({'opacity' : 1}, 1500, 'easeOutExpo'); } });  
    Hope this is useful,
    Lyndsey.
  16. Lyndsey's post in Hidden form field to stop spam was marked as the answer   
    Hi Drennan,
     
    There's been a discussion on this subject here: http://www.webdesignerforum.co.uk/topic/68584-anti-spam-form-without-captcha/?p=432632
     
    The original poster has also provided a tutorial
     
    Lyndsey.
  17. Lyndsey's post in Responsive Videos Issue with Mobile was marked as the answer   
    Don't know if this will be useful to you, but here you go nonetheless: http://stackoverflow.com/questions/998245/how-can-i-detect-if-flash-is-installed-and-if-not-display-a-hidden-div-that-inf
  18. Lyndsey's post in Explode & Limit was marked as the answer   
    Try:
     
     
     
    <?php $parts = explode(',', $row["imagerefs"]); $numImg = 0; foreach($parts as $part) { $numImg++; if ($numImg <= 4) { ?> <li> <a class="thumb" name="leaf" href="<?php echo $part; ?>" title="<?php echo $row["make"]; ?>"> <img src="<?php echo $part; ?>" alt="<?php echo $row["make"]; ?>" style="width:146px; height:88px;"/></a> </li> <?php } } ?>
  19. Lyndsey's post in annoying ccs issue i think was marked as the answer   
    It happens to me too. Try adding a width to your header, see if that fixes the issue:
     
    header { float: left; width: 100%; } Or just take off the float altogether, not sure it's needed:
     
    header { width: 100%; }
  20. Lyndsey's post in Most efficient button method was marked as the answer   
    Here you go Greg, tweaked it a little: http://jsfiddle.net/LyndseyB/Nmqf5/3/
     
    To remove the white space before the navigation, do what ties says above and use a CSS reset (he provided a link). This sets all margins and paddings to 0 so that all browsers are consistent and apply the same rules. For the example I've given you, I've simply set both padding and margin to 0 in the body CSS selector. To vertically align the navigation links to the center, I took off the height attribute of the navigation and applied a padding to the list items (10px) which applies 10px to both the top and bottom of the navigation block, positioning the elements to the center. Just editing to add: I removed the padding-right:100px from your CSS as that was causing some of the links to be pushed off the page and not displayed in your navigation.
     
    Let me know if you need any more help
    Lyndsey.
  21. Lyndsey's post in jQuery scrolling issue was marked as the answer   
    Try upping the padding on the hero-unit class:
     
    .hero-unit { padding: 60px 0; /* I CHANGED THIS TO 60px WHICH DOES THE TRICK */ font-size: 18px; font-weight: 200; line-height: 30px; color: inherit; text-align: center; }  
    Seems to work, but let me know.
     
    Lyndsey.
     
    Edit: I think what's happened is the other blocks (Getting Started, Courses Contact) are contained within a <div class="block"> </div> which has a margin-top value of 30%, which allows the content to sit below the menu accordingly. However, your <div class="hero-unit"> </div> which contains the initial content isn't wrapped inside a block, so there's no margin added.
     
    So you can either do what I mentioned above, which is change the padding of the hero-unit div or even the margin. Or alternatively, you can wrap the hero-unit div block inside a <div class="block"> so that the margin gets created automatically for you.
     
    Hope this helps.
  22. Lyndsey's post in Word spacing in css was marked as the answer   
    You can only do it with a <span> tag if the element is set to display:block; like this:
     
    <span class="center"> Centered text </span> .center { display:block; text-align:center; }  
    This is because a <span> is an inline element so text-align:center; will work off the elements content width (e.g. the width of the text inside the span). However, a block element takes its width off it's container (in this case the <span> element), so the text will move to the middle of the container.
     
    Alternatively, use a block-level element like a <div>, which will work without using display:block inside the CSS (as it's display:block by default).
     
    Hope I made sense
    Lyndsey
  23. Lyndsey's post in Can someone check site in IE for me? was marked as the answer   
    Hey Charly,
     
    I've just checked the site in versions 7&8 using the IE9 Development tools and it appears fine. Maybe they're using IE6, in which case, the menu the category bar is pushed over to the right a little:
     

     
    Lyndsey.
  24. Lyndsey's post in hr bar was marked as the answer   
    The first <div class="hr"> entered after the slider hasn't been closed off, so all of the other horizontal rules are actually displaying inside that div. You're also not closing off the <div class="clear"> directly underneath the aforementioned <div class="hr"> so the services div is being displayed inside the clear div. I hope I'm explaining this OK!
     
    What you need to do is close off the <div class="hr"> after the slider like this:
     
    <div class="slider"> <div class="flexslider"> <ul class="slides"> <li style="display: list-item;"><img src="img/slide1.jpg" alt=""></li> </ul> </div> </div> <div class="hr1"> </div> <div class="clear"> </div> <!--Services--> <div class="services"> <h3 class="title">My Services</h3> </div> <div class="hr1"></div> <!-- ETC -->  
    Hope that made sense!
    Lyndsey.
  25. Lyndsey's post in Something not right was marked as the answer   
    The padding is causing the background space to expand:
     
    .button { padding: 40px 15px 4px 20px; }  
    To resolve the issue, you can add a transparent background color to the same class, like this:
     
    .button { background-image: url(../img/button.png); background-position: 100% 100%; background-color: transparent; /* I ADDED THIS */ background-repeat: no-repeat no-repeat; border: none; color: #3187AC; float: right; font-size: 12px; padding: 40px 15px 4px 20px; text-align: center; }  
    Lyndsey.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.