Frontend
HTML, CSS and JavaScript - Having trouble with CSS? Post your question here. Find solutions & discuss stylesheets, hacks and techniques.
13,911 topics in this forum
-
On my site I have a small video playing in a loop in the top left corner, I want to click on a button and replace the video with another, then when the video has played I want to go back to the first video. There will be 7 buttons to click playing 7 videos, one at a time of cause. I'm not that savvy with Javascript to do this, I would appreciate any help on how to do this with HTML5 video. Thanks.
-
- 1 reply
- 1.1k views
-
-
I have designed 3 versions of a web page - desktop, tablet and mobile. Content is same but layout is different. Which approach is best to convert the page to responsive html: a) Separate html files Separate CSS files c) Single CSS file You can view jpegs of the 3 versions here: Desktop: http://shrineweb.in/other-files/clients/showyourskills/test/Home.jpg Tablet: http://shrineweb.in/other-files/clients/showyourskills/test/Home-tablet.jpg Mobile: http://shrineweb.in/other-files/clients/showyourskills/test/Home-mobile.jpg I am new to responsive web designing, please give the best advice. NOTE:- Mobile version's navigation (top-right) is different …
- 10 replies
- 2.2k views
-
Hello, I am a real amature at web design and I have a problem of trying to get a menu to work for me. It is a purchased template. The code allows you to see the "currect page item" and I can add this without a problem, but when I try and add a sub menu it all screws up. Below is a typicle code for the menu, It is hosted at this address www.first-forward.com User: Help Password: password100 <!-- Nav --> <nav id="nav" class="mobileUI-site-nav"> <ul> <li class="current_page_item"> <a href="red/html/index.html">Ho…
-
- 5 replies
- 1.4k views
-
-
Hi I am right now creating a website idea i had and came across a problem with displaying data to smaller devices. The site is responsive and uses Foundation 5 framework. The problem is, i have a link called "whats new" and i wanted to put all kinds of things there (last comments, scores, users, other stuff - complete overview of whats happening right now on site on one page) and it will look nice on tablets and up but for mobile users it would become very confusing and finding something requires a lot of scrolling. Any tips how to make it look good on mobile? Maybe to use tabs for only mobile users... or hide most data and make it visible by clicking on an elemen…
-
- 3 replies
- 887 views
-
-
Hi, I am working with WooCommerce and the minus section next to the add to cart button is all messed up. I have looked in my CSS but cannot find the cause of the problem. Please help URL is http://hypnosisacademy.ie/product/certificate-cognitive-behavioural-hypotherapy
- 2 replies
- 917 views
-
I am trying to copy the shopping cart tables from this website http://hypnosisacademy.co.uk/cart/ to http://hypnosisacademy.ie/cart and I am struggling to target the bottom table? Could some one please point me in the right direction, I would like to copy the borders etc. Thanks in advance
-
- 5 replies
- 956 views
-
-
I have the Chrome vendor prefix for transition, only, you must view the link in Chrome only otherwise you'll see the words "Art/Art2" overlapping the word "gallery" in any other browser. [Link] h3.gallery a:hover {-webkit-transform:rotateX(180deg);-webkit-backface-visibility:hidden;} I'm unable to get the word "gallery" to rotate vertically then display the h3=Art/Art2. What am I doing wrong ?
-
- 0 replies
- 1.2k views
-
-
Hi I'm currently working on a website at http://proofing.yorkcreative.co.uk which I've taken from a different designer and converted to use Modx CMS (which I often use). This site has already had a few others work on it before me! But I've got everything working nicely. The problem now is my client wants to keep the design and go mobile responsive. Although I explained this is messy and can't really be done without a rebuild, he doesn't want to lose all the previous work he's paid for and it's all already taken months - he wants to launch. Here's the site: http://proofing.yorkcreative.co.uk I've started using HTML Kickstart to work on putting all the conte…
-
- 7 replies
- 1.5k views
-
-
I want to create a page view and update by using the bootstrap modal, but every time I click on a link view existing data in the database can not display the page to bootstrap modal. How can I make the data in the database available to display the bootstrap modal? <table class="table table-striped table-bordered table-hover"> <thead> <tr class="alert alert-info text-center"> <th> ID </th> <th> USERNAME </th> <th> LEVEL </th> …
-
- 1 reply
- 10.2k views
-
-
I have 3 divs in a parent divs like this. I'm using bootstrap and the HTML is something like this: <section class="col-md-12"> <div class="row2"> <div class="register col-md-4"> <h4 class="register-heading">Get registered with us</h4> <form action="" method="post"> </form> </div> <div class="adspace col-md-4"></div> <div class="market col-md-4"> <h4 class="…
- 17 replies
- 130.8k views
-
Hey guys, http://i60.tinypic.com/24v7dxl.jpg I have this fluid grid set up that splits into single images at 480px. It works fine but if you drag the window down to just before the 480 mark you'll see the larger image not stick to the full height of the container. I've read a lot on getting divs to stick to the height of the containers, but I cannot seem to find a solution that works with this current set up.
- 12 replies
- 2.3k views
-
Hey all! New to the forum. I'm designing my aunt a website and I've been having troubles with one thing. I have a div, "nav" in which I have my navigation links. The links are displayed in block format so when you rollover them the blocks are evenly colored. If that makes sense? : ) So I'm trying to apply the CSS3 rounded corners using this generator http://border-radius.com/ to apply it to the main div so that only the top and bottom "blocks" have rounded corners. Here's the code I have so far: HTML <div class="nav"> <ul> <li><a href="/">Home</a></li> <li><a href="/">About</a></li> <li><…
- 10 replies
- 1.6k views
-
Hello all, I've designed a left to right sliding tag that works fine, however, I'm trying to make the button slide along, (the same direction as the hidden div). I've tried using the .animate function. This works but the button doesn't slide at the same speed as the hidden div. I know it's a div that's probably not been included or not in the right palce but the button that I want to slide isn't sliding with the hidden div. Here's the code: <style> #reply { position:absolute; top:0px; right:0px; width:100%; height:100%; } #hidden-reply{ position:absolute; height:100%; background:red; …
-
- 0 replies
- 1.1k views
-
-
Hi, I built a website with social media links which are within a Wordpress widget. The 'links' are at the top left of this home page theoldstationnursery.co.uk. But they don't link! I keep looking back at the code in my widget thinking that the syntax must be wrong, but I can't see the error. This is my code: <div id="social-links"> <ul> <li class="link-facebook"><a href="http://www.facebook.com/pages/The-Old-Station-Nursery-Group/138568469498327/ ">follow us on facebook</a></li> <li class="link-instagram"><a href="http://instagram.com/oldstationnursery#/ ">follow us on instagram</a></li> </ul> </…
-
- 2 replies
- 883 views
-
-
I have the following form in a website: http://jsbin.com/hihodaxa/3/, it works when the file is html but when I make it php so i can use include (templates), it doesn't work. The rest of the JS code executes fine. The content is not in English. My question is how should I redesign the js code so that the js executes properly in a php file? The js code in the link is from an external file <link href="mainCode.js" type="text/javascript"> placed in the php file. As far as I read in the Internet, this should work. Any help is much appreciated. Best, Ivan
-
- 6 replies
- 923 views
-
-
I'm looking to detect the location of a website visitor (presumably by IP), and then whatever their detected country is, I want this to then be the selected option within a <select> dropdown when specifying their Country of Residence. Save them having to choose it from the long list of country options! See visual below. Does anyone have any ideas/recommendations please on any plugins that would enable this?
-
- 1 reply
- 884 views
-
-
Hi guys, i am trying to get the slider event to fire when the jquery animates the handle on load but whatever i try i cant figure it out. Hope you can help. I need the divs to expand with the handle animation and then for the user to use the slider to manipulate the graph which is currently working. Thanks, Gaz DEMO JS $("#slider").slider({ animate: "slow", value: 0, max: 100, min: 0, step: 0.01, slide: function (event, slider) { $('#vardiv').css('height', slider.value / 100 * 6000); $('#vardiv').css('max-height', 180); $('#vardiv1').css('height', slider.value / 100 * 90); $('#vardiv2').css('height', slider.value / 10…
-
- 1 reply
- 2.5k views
-
-
Im trying to fetch data from twitch and have it output it using different css whether the streamer is online or offline. But i cant get it to work, it just says the streamer is offline. function twitch_streams_widget() { // Try to retrieve a stream from cache to avoid external calls $stream = wp_cache_get( 'featured_stream' , 'apoc' ); if ( false === $stream ) { // The list of valid streamers $streamers = array( 'guratw' => 'guratw' ); // Shuffle the array $keys = array_keys( $streamers ); shuffle( $keys ); $new = array(); foreach($keys a…
-
- 3 replies
- 1.1k views
-
-
Hi! I've made a website and tested it on all browsers and just in Chrome the parallax effect doesn't work. When I click on the nav button, nothing happens. I don't know why? Please help me!
- 13 replies
- 5k views
-
I thought about how HTML can be likened to the bones of a web page, while CSS is similar to the skin. So I did a quick Google search and it seems people had already come up with the same "insight". Only, they added that JavaScript was "the muscles" and PHP the "brain". So HTML is the bones, CSS is the skin, JavaScript the muscles and PHP the brain. Do you agree with this?
- 13 replies
- 6.4k views
-
Hi Basically I want to expand a div to fit content on click (preferably a button in the top right hand corner aligned with the heading) then contract on click from the same button but now its in the bottom right hand corner..... here's an illustrated example of what i want.. on page load..... on click ...... i want it so u can constantly cycle through an 'open' or 'closed' div, not so its only able to be clicked once... i hope this makes sense Will
- 9 replies
- 37.8k views
-
Could anyone tell me how to target the .box div with first-child here? <article class="1"> <a href="#"> <div class="2"> <h1>Title</h1> <p>Text</p> </div> </a> </article> I can target the article just fine (article.1:last-child), but cannot seem to effect the inner div?
- 2 replies
- 887 views
-
I am after developing a shape that would go under my navigation. Quite simple, of you imagine a thick bottom-border with curved ends, and one of the ends would have a large circle at the end. A bit like a sideways thermometer! If anyone knows how I can achieve this, that would be ace, as I have been trying with css3 but cannot crack it!
- 6 replies
- 880 views
-
I've run into an issue, the anchor for the word contact is too large ? One other thing, the site looks fine on IE/Chrome, with the exception of margins etc, but on FireFox the margins and spacing are bad ?
-
- 8 replies
- 1.4k views
-
-
Hey guys, so I am finishing a website and I am doing the final corrections. One thing that bothers me is the font.. I've got an imported google font.. in Chrome it looks fine, but in Firefox it's bs. Why is it, that ther's such a big difference? How can I make the site look the way I intend, acoss all the browsers? Do I need to keep changing fonts until I find one that looks good in other browsers too ? Thanks
- 9 replies
- 1.7k views
-
Hey all I seem to be having some trouble using max-width/min-width on a couple of inline block elements not sure if i'm trying to do something that isnt actually possible or that i'm just approachingh it in the wrong way - hopefully someone here maybe able to help Basically I have a a content div floated left with a max-width and min-width assigned to it and set it to display:inline-block. Most of the time the element should be max width with an aside to the right of it. The aside also has a max-width and min-width with a display:inline-block Sometimes the aside will have an oversized div included and I want the content to resize down to allow them to still sit …
- 3 replies
- 1.1k views
-
Hello. I want to start learning Javascript next. I am an absolute beginner and was wondering if anyone could recommend me a good book to read? I usually buy the Sitepoint books as I get on well with them but the book for Javascript has poor reviews on Amazon. I do want a book as that is what I learn best from. Many thanks James
- 9 replies
- 2.4k views
-
Hi, Has anyone used the addthis.com welcome bar? as I need some help. I have put it on my site, but at the moment when it appears it pushes the rest of my site down. What i really want is for it to appear above the other divs or move the background down with it (which I don't think is possible). I have tried putting the code for it in a div and giving a a z-index, however that didn't seem to work. If you go here: https://twitter.com/CFJMagazine and click on: contractflooringjournal.co.uk/fluid you will see how it works at the moment. Any help with this would be great, thank you. Neil
- 7 replies
- 72.4k views
-
Hello everybody, I am finishing a site, and I have a little css problem I can't solve: rubencantafio.com/wp On the search button (magnifying glass), the slide effect works like a charm, but in Opera (both PC and Mac) the position of the button is always wrong (it appears towards de left). What's happening? It's driving me crazy. Thanks, Eduardo
-
- 3 replies
- 884 views
-
-
Hi, here is our script for FALLING TEXT. Use it on your website and let us know Just copy & paste source to new html file and run it. For more see our FALLING TEXT EDITOR at http://siwebst.eu/swsfall/index.html. Si web studio Team ----------------------------------------------------------- <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>FALLING TEXT by Si Web Studio</title><script src='http://code.jquery.com/jquery-latest.min.js' type='text/javascript'></script> <style> body { margin:0 auto; width:100%;…
-
- 7 replies
- 1.7k views
-
-
The checkout button within the cart of the template i bought is not working it doesnt submit or take you to paypal as the outside checkout provider please see the code i have below should this work am i doing something wrong? <div class="cart-row"> <div class="cart-options"> <button id="checkout-btn" class="form-button" type="submit" title="Checkout with PayPal" onclick="Store.checkout(); return false"><span>Checkout</span></button> </div> <div class="cart-keep-shopping"> <a href="/products" title="Return to Products"><span>« Continue Shopping</span&…
-
- 0 replies
- 1.3k views
-
-
I've almost finished a responsive redesign of my own website http://www.nielsharbo.dk/index-eng.php But I came across a problem with Goggle Adsense blocks. The Code that Adsense provides is rendering the ads with fixed width and they state that you are not alowed to edit the code. I was very suprised that the Adsense developpers doesn't offer a responsive option in the API. I've found several blog posts recomending to use a JavaScript conditional stement to check the width of the browser window and embed adblocks in different sizes based on this condition. The articles I've read claim that Google have aproved this workaround but I cant seem to find any documentation f…
- 13 replies
- 3.3k views
-
I've never actually used HTML5 video on a live project and was wondering about the pros and cons. Obviously it would be nice to not have the YouTube video interface but I was wondering if not associating it with YouTube would have any impact on SEO? Also when I did play around with it there were all sorts of caveats for different browsers etc. I'm working on a mobile-friendly site so I'm a bit worried about it not displaying properly on some of the more obscure browsers.
- 13 replies
- 1.8k views
-
This page http://www.remedyswapshop.com/section/homeopathic-remedies/ has background color #6C9069 for both the footer and the top menu but the colour still looks different(top is darker than footer), any idea why?
- 3 replies
- 877 views
-
Afternoon WDF , has anybody used Worldpay Checkout Forms before. ? The below link is the some examples on the Worldpay site , you will notice that when you try and calculate some costs the total just gives an error ? Was hoping this would be a quick fix ? can anyone spot it ? Code http://www.worldpay.com/support/kb/bg/examples/example_0/jr_example0.4_code.txt Demo. http://www.worldpay.com/support/kb/bg/examples/example_0/jr_example0.4.html Regards BWD
-
- 0 replies
- 1.4k views
-
-
Can any please point me in the right direction - I'm looking for a demo/snippet/etc. for multiple <select> dropdowns in which one dropdown is disabled until a certain option has been chosen from the previous. Also the options in the 2nd dropdown will be different depending on what was selected in the 1st dropdown. I hope this makes sense?! If anyone knows please of any script/demo/etc. that does this which I can use, that'd be great.
-
- 0 replies
- 1.2k views
-
-
Hi , I want to serve html tag with class="oldie" only for IE versions older than 9. I'm using this <!DOCTYPE HTML> <!--[if lt IE 9]><html class="oldie"><![endif]--> <!--[if gt IE 8]><!--><html class="" lang="sk"><!--<![endif]--> <head> .... However can't make it work , tested on browsershots and IE11 emulating IE8 . I cannot figure out what's wrong and already browsed plenty of google pages about it. Class should ensure that site is displayed without background image. Anyone can give me advice what am I doing wrong ? Site address is http://www.pizzamako.sk ... Thx! edit: I finally make it work / still d…
-
- 1 reply
- 883 views
-
-
Hi guys, rather than explain in detail what I'm attempting to do it's easier just to show another site doing something very similar: http://downloads.linkinpark.com/store/container.aspx?year=2011 If you click on a show with photos listed note they're displayed from Flickr via tags. Wanting to do something similar I acquired an API key for Flickr and did some searching around for help to get it working, as API usage in general is pretty new to me. I found this simple way to use it to display the photos based on tags: <script src="http://api.flickr.com/services/rest/?format=json&method=flickr.photos.search&tags=exampletag1000&tag_mode=all&sort=d…
-
- 0 replies
- 1.2k views
-
-
Hello, I'm have the most difficulties in embedding custom fonts in IE8+ on my site. I've used many forms of the @font-face and none of them work. None! Here is what I've tried: @font-face { font-family: 'Deft'; src: url('deftone.eot?') format('eot'), url('deftone.woff') format('woff'), url('deftone.ttf') format('truetype'); } also: @font-face { font-family: 'Deft'; src: url('fonts/Deft/deftone.eot'); src: url('fonts/Deft/deftone.eot?#iefix') format('embedded-opentype'), url('fonts/Deft/deftone.woff') format('woff'), url('fonts/Deft/deftone.ttf') format('truetype'), url('fonts/Deft/deftone.svg#DeftoneStylusReg…
- 9 replies
- 3.8k views
-
Hi At the moment i am using jQuery cycle on my website to create a slideshow with prev and next buttons for my users to view a slideshow of some images. However recently i have noticed that when the page loads it starts with showing all the images one after another and then once the page is loaded it puts it to how it should show with one image and the prev and next buttons. Is jQuery cycle not the best method of creating a slideshow or something??
-
- 7 replies
- 2.4k views
-
-
Hi guys! So I need urgent help with this. I need a html/css code that will allow for the image below to have a shinning animation on hover. The tutorials that I've found online were square pictures/logos/buttons, so those didn't help. ] Thanks in advance!
-
- 0 replies
- 5.7k views
-
-
Why is it when I scroll this page in IE 9/10 it grows larger, the lack of HTML 5 support ?
-
- 0 replies
- 1.2k views
-
-
I have an HTML table generated by PHP querying from MySQL table: <table> <tr> <th>Sl</th> <th>ID</th> <th>Article Name</th> <th>Publish Status</th> </tr> <?php $i = 1; foreach ($obj->showAllFromTable('pattern') as $pattern) { extract($pattern); ?> <tr> <td><?php echo $i++; ?></td> <td><?php echo $id; ?></td> <td><?php echo $pattern_name; ?></td> <td id="publish_<?php echo $id; ?>…
-
- 0 replies
- 2.1k views
-
-
Hey all, I have been meaning to get into Grunt for months and I finally got around to it last night after finding this walk-through by Christ Coyier: http://24ways.org/2013/grunt-is-not-weird-and-hard/ Im really impressed on first use and It means I can do all Javascript concatenation/minification, sass compilation and live reloading all from the terminal at the start and let it do that whilst I concentrate on development. I just wondered if anyone around here uses it and if there are any useful plugins that they use on a daily basis that they can't live without? At the moment Im using: grunt-contrib-watch grunt-contrib-concat grunt-contrib-sass …
- 7 replies
- 1.4k views
-
I am desperate all the time i am trying to find a source similar to xenforo and i can't find any... I got really frustated and if you guys help me out feel free to ask me anything i can do in return! Here is the toggle bar: I want just 2 buttons over there a login and a register once the login would be clicked it would show up the bar but when the register is clicked it will moved to href. I have seen toggle bar from the bottom or from an image to toggle down but nothing like xenforo. So does anyone know any website that have a source for what i need?
-
- 0 replies
- 1.6k views
-
-
want something like this - OnClick='window.open('$issuelink')' to append to the dom inside a div called issue_image when #close is clicked. Is this possible? I can't find out how to append information into divs, only inside the tag, if that makes sense . I've added code below to show what I want the final div to look like after the close button is clicked Thank you <div class="issue_image" OnClick='window.open('$issuelink')'></div>
-
- 2 replies
- 5.4k views
-
-
Hello all, Facebook has changed the way the sharer.php process works, and it's broken all the features on the website I work on. It now goes through the URL referenced in the share link and draws text from the page to build the title, description and image for the share post. On the particular site I work on, this text is not relevant and I would like to control the title, description and images myself. I understand I can get around this by using <meta name="description" content="blah blah blah" /> or something like that in the head tag. However, at my work I only have access to the content areas of the site and currently can't go near the <head> tag, …
-
- 0 replies
- 1.2k views
-
-
Here is the thing i am trying to set this up on my mybb theme and the thing is i want to make the navigation .active as default of starting up the slider. For instance it starts up from the left side and if you point the mouse it moves right? So what i want is to start from the active bar and then if you move the point of your mouse to do the default action as it does. I have learned some javascript i quite understand the code but i don't know how to on the code is really still frustrating to me javascript. I have seen the javascript code and in some part it shows something like this: slip = document.createElement("li"); slip.className = "highligh…
-
- 0 replies
- 1.8k views
-
-
Why put classes inside of ID ? For example: {#Loot .paper}
-
- 6 replies
- 883 views
-
-
I want to get the semantics right within the HTML. I know I'm using a <section> tag when I should be using a <nav> tag, I prefer the word <section> I hope that it's not semantically wrong ? This is two issue I have with the page; I want to randomly position the H1 and H2 tags horizontally. My original plan was to put each H1 & H2 tag in it's own class, I was then informed to do as such. I can't style <h2 class="gallery"><h2>Gallery</h2></div> I've tried and tried, I'm asking for some help, as a book on HTML5 can't give me the answer One more thing the word "skill level" is on two lines I want it one line, in o…
- 19 replies
- 2.6k views