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
-
Those of us familiar with javascript know we should not be polluting the global scope with variables, I'm just wondering what the best method is as I use quite a few in various places, all seem to work but I'd be interested to know what others think is the better method. 1. Using an object with the function as a method. var scope1 = { init: function(){ // Variables here are only scoped to this objects init method } }; scope1.init(); 2. using a declared function function scope2(){ // variables here are scoped to this function only } scope2(); 3. using an immediatley invoked function expression (IFEE) (function scope3() { // variables here closed to…
- 12 replies
- 2k views
-
Hi all, I'm having some problems positioning my addthis buttons. At full size they're fine however when resizing the browser window I'm having problems with my Follow buttons disapeering behind the slideshow. Also on the iphone they are hideous. Anyone know what to do?
-
- 0 replies
- 1.6k views
-
-
Please help I got a problem with my CSS, I wanted it to look like this :: PRODUCTS --> NERPETS When you hover from the products nav , it drifts to the left and the layout breaks.
-
- 4 replies
- 1.3k views
-
-
Hi all. It's been a long time since I've been back. Sorry about that. Life has been all over the place. I have a question. On a site that I'm starting up PhillyTech.org, I'm using the Twenty-Fourteen theme in Wordpress. I've gotten most of the colors changed but I can't get the rollover on the menu to change from the hideous green. Can someone point me to where I can change this in the CSS? Thanks in advance 8-)
-
- 3 replies
- 1.2k views
-
-
I need to make a portfolio for some uni work, I'm just wondering what you guys think the best grid layout/framework is to use? Bootstrap? I've not used a startup framework for ages so i'm not 100% sure of the frameworks out there! Regards, Pad
-
- 7 replies
- 1.7k views
-
-
This is just a simple Javascript library I have built as a personal project called QuickJS my goal is to put most of the Javascript language inside a library. Please note I may release this on its own website eventually but right now it is just a personal project that in all honesty I have built in a few days time. So feel free yourself to help build onto this project if you see fit Thanks. Edit: Project now moved to github https://github.com/webdeveloper73/QuickJs QuickJS Example 1(QOn Method) The QOn method basically handles firing off different on events. Here are a list of some events the QOn method can handle keydown(Same as onkeydown js ev…
- 12 replies
- 7k views
-
Hi, I have problem with Chrome and Opera.My site have searchbox and when i input search term, a div which jump,not overlap divs with fixed positon.How i can fix It. My site is www.bestbody.eu .You may log in with username: hector45@abv.bg pass: password I hope that someone will help me.
-
- 0 replies
- 1.9k views
-
-
Hi guys, I have spent quite some time developing a website using angularjs and suddenly it dawned to me that as I am using angularjs there is no static content on the website. I think this would cause search engines not to index any data. Is this really the case. Was I dumb enough to use angular? Or is there a way to get around this problem? Thanks.
-
- 1 reply
- 1.7k views
-
-
Hello, Basically i've made a little app that alters the colours of an SVG when a button is clicked i need to also display the value of the button when its clicked in a p tag or something. my code for the button is below, <button class="btn color2" id="btn-4" value="Color 2">2</button> i have loads of these buttons in groups like this, 4 groups in total. <div class="buttons"> <p>30% = </p> <div class="colors"> <button class="btn color1" id="btn3-1" value="Color 1">1</button> <button class="btn color4" id="btn3-2" value="Color 4">4</button> <button class="btn color24" id="btn3-3" value="Color 24">…
-
- 2 replies
- 1.2k views
-
-
Hello, I have a website with open cart, and I would like to change my menu to a "Full Width" one like bellow. It does not have to be as technical as the one bellow, so what ever is easier to do. I only want to achieve a full width look for now. Here is my website link, if you require any CSS you can not get hold of, please let me know. www.aystot.co.uk
-
- 0 replies
- 1.4k views
-
-
I'm creating a website and I'm trying to work out how to get my footer div to stick to the bottom of the page. This is the CSS code I've written: #footer { position: absolute; bottom: 0px; height: 50px; width: 935px; background-color: red; } This is the HTML code used to insert the div tag (I've put this code at the bottom of my page, just before the </body> tag): <div id="footer">This is a footer</div> The problem I'm having is that the footer is floating halfway up the page, staying in exactly the same position when I scroll up/down the page and covering the content. But I can't work out how to get it to stay at the bottom of the page, could…
- 7 replies
- 2.8k views
-
hi...m nilesh.. i want ask that...if m using inline css while disigning the website, so is there any problem for website loading or validation or any other problem if i use inline css???
-
- 11 replies
- 2.1k views
-
-
Hello Friends, I have a project where am making the login form a popup box of javascript. My javascript will alert if email or password is missing but i need to check my database to be sure the email and password are correct beforre redirecting the member to member Page. I am not so good in javascript but better in PHP below are my scripts $(document).ready(function() { $("#login #cancel").click(function() { $(this).parent().parent().hide(); }); $("#onclick").click(function() { $("#logindiv").css("display", "block"); }); $("#contact #cancel").click(function() { $(this).parent().parent().hide(); }); // Login form popup login-button click event. $("#loginbtn…
-
- 0 replies
- 1.4k views
-
-
hello there. i need to create something like the following below but not to sure how to go about it, or what to use. http://www.silikal.com/service-2/mischprogramm/?lang=en I tried using PHP to change the colour of the png but i could only seem to do this once within the code and could not figure out how to link to a button. <?php header('Content-type: image/png'); $floorimg = imagecreatefrompng('images/floor1-1.png'); imageAlphaBlending($floorimg, true); imageSaveAlpha($floorimg, true); imagefilter($floorimg, IMG_FILTER_COLORIZE, 230, 42, 69); imagepng($floorimg); imagedestroy($floorimg); ?> i seen a few JS examples which meant creating an ima…
-
- 9 replies
- 1.8k views
-
-
Hi, I am trying to emulate the functionality of this slider with thumbnail navigation: http://flexslider.woothemes.com/thumbnail-slider.html I have it working as a full-width carousel, however unfortunately the navigation arrows are not being positioned correctly on either the slider or the thumbnail navigation, please see development url here: http://tinyurl.com/l59bzrv I'm sure I have all the necessary flexslider css in place. Also I am getting horizontal scrolling in the browser, I believe I could fix this with overflow-x:hidden; but I wondered if the issue with the arrows may be causing the horizontal scrolling and fixing the one problem may fix th…
-
- 1 reply
- 1.1k views
-
-
So this might sound stupid but I thought I'll ask it anyway just to clarify it. As everyone know html5 has semantic structure therefore they use pretty straight forward tags now such as header, aside, section and such but do you actually structure your html using html5 tags? So far I'm using section as a container like this; <section> <div></div> <section> or do you do it the other way around? please if you have any ways of using them properly could you possibly please share it. Thanks
- 5 replies
- 1.4k views
-
As the title explains, I've just recently started to learn web design at college and need some help with implementing a sticky footer and general feedback with my coding as it is probably extremely poor. I would like to have my footer constantly sit at the bottom of the page, right now I am only able to get it to stick at the bottom of the viewport but it completely ruins the actual design of my site, I have uploaded the css and relative html to pastebin which you can find below. HTML - http://pastebin.com/Jg4rJ6Ri CSS - http://pastebin.com/StzUMh8c Thanks In Advance, -Connor.
-
- 3 replies
- 1.1k views
-
-
Hello everyone, I'm pretty green in web design and the company I work for is building a website where they want to feature a custom builder type page. So basically customers can get on the site, design their own car/motorcycle/skateboard or whatever and have an invoice for it. Sorry that might be hard to understand, but here is an example of what I'm talking about. http://www.villycustoms.com/custom-builder/ If someone could point me in the right direction, it would be greatly appreciated! Thanks!
-
- 0 replies
- 1.7k views
-
-
I'm trying to find the efficent way of creating a box with an arrow on the outside of it. The way of create it so far seems fairly inefficent, any ideas of a more streamlined way of doing it? This is how i'm creating it currently. http://codepen.io/nigelhathaway/pen/bff31186329c3b743498ba91271d4f2f/
- 5 replies
- 1.6k views
-
Hi friends, im looking for a "script" or something like that for a Counter which can fast count up to 3.000.000 Euro. So i surf on the page, and i see a nice counter which counts up verrrry fast to that number and i can write something under that. i tried some counter for webpages, but those are counted just via page visitor.... someone got idea? or can help? thankxxxxxx michael
- 2 replies
- 1.3k views
-
If you use a well-known framework in your workflow please tell me how it helps you, and what your primary skillset is. (Please don't list which you use as I'm not interested in which framework is the best etc.)
- 6 replies
- 1.8k views
-
Hi all I am new to this forum and have a multi-part question I would like to pose to the community. Much the easiest way to start is to give you the spec for the website; My family are all on a health kick and trying to lose weight. I want to create a simple website that will exist only on our home network (on a media server I have built) that will catalogue their weightloss. The website will have an entry form where you can enter your name and and current weight. These values will then be written to a database and displayed as a graph on the website +/- the raw values on a table. I may include other measurements (waistline etc) I have a basic understandi…
-
- 11 replies
- 1.7k views
-
-
Firstly, apologies if I have posted this to the wrong area. I was looking to get pointed in the right direction. What I have on my page is pictures of players and when you click on them it takes you to that persons profile on a separate. What I want to achieve is when I click on the pictures the corresponding profile appears below the pictures and then hides when you click on the photo again. If I can be pointed in the right direction for what I should be looking into or if it's not possible. Many thanks!
- 13 replies
- 2k views
-
Is there a way to make the fonts on this site: http://richardclunan.com load more quickly? When I clear my browsing data and load the site, the handwriting font at the top of the site loads quickly, as does the menu tabs font (neither of which are standard fonts); but the font that the body copy is in takes a few seconds to load. For those few seconds, the body text displays in a different font. The fonts taking time to load are Arno Pro and Arno Pro Italic. A guy added those fonts recently. He wrote additional/new CSS styles in the styles.css file and he says he doesn’t know of a way to speed up their loading, as the browser needs to download the fonts. …
- 15 replies
- 2.1k views
-
Hi all, it's been a while hasn't it? I've been trying to implement a notification bar on my site for a while, which as evidenced by the demo where this bar comes from should be quite straightforward. http://www.ak****sethi.me/how-to-create-simple-notifications-bar-for-your-website/ Here's a temporary page I've tried to put on my site. http://www.jonniegrieve.co,uk/bar.html It's supposed to work by switching the bar off with the close button, and, if you wish click a button go get it back open. But the open button keeps appearing first, and the bar will not disappear. The demo works fine so I don't think it's a compatibility issue. The HTML, CSS …
-
- 3 replies
- 2.7k views
-
-
Hello all. Can anyone point me in the right direction with a tutorial on how to create the effect seen here. I've tried a few tutorials, but none have the parallax effect like this one. Any help would be grateful. Thanks
-
- 5 replies
- 1.8k views
-
-
Hello Guys, I have a registration form I want to submit to my database. I am not good in javascript for very good in php. I have a form like this; <form action="" class="idealforms" method="post"> <div class="idealsteps-wrap"> <!-- Institution's Detail --> <section class="idealsteps-step"> <div class="field"> <label class="main">Organization:</label> <input name="organization" id="organization" placeholder="Eg. ABC Int'l Ltd, Institute of Information" type="text" maxlength="70"><br/> <span class="error"></span> </div> <div class="field"> <label class="main">Username:</label> …
- 4 replies
- 1.8k views
-
Hi all, I'm trying to design a website about our cockatiels that we breed. I haven't done any designing for about 3 years, so I'm busy trying to learn all about css and that sort of thing. Please forgive the "noobishness" and try to put things in words of one syllable Anyway, I am using Dreamweaver 8 (I tried webeasy 10.2, but didn't like it) and I want a specific design (i'm not sure how to show you my design, but I will try to explain it... I want a header, 3 columns of varying widths and a footer. In the header I want our Name which I have saved as an image so it will display in the fonts I want, a small caption under the Title image, and a picture (or…
-
- 5 replies
- 1.5k views
-
-
Hello, I could do with your help. I have a Moto G phone with Google Chrome, but when I view my website, my main text has been cut off, and the front is a default not the one I want (AR Destine). I am using a responsive web design. I have been messing about in style.css, but still can’t fix it. www.aspirationscotland.co.uk
- 3 replies
- 2k views
-
Hi, I know some people have been using bootstrap or foundation, I'm a big fan of FZ but I'm looking for a lighter version. I could write my own but I thought I'd research for more options.
-
- 10 replies
- 1.9k views
-
-
Anybody using the Grunt favicons task, I'm having an issue making the favicon.ico transparent. seem's weird as I am supplying a transparent png24, and it's working fine for the other icons, apple-touch, favicon.png etc. https://github.com/oblador/grunt-favicons/ This is how I have my options configured in grunt favicons: { options: { html: 'img/build/icons/favicon.html', HTMLPrefix: "img/build/icons/", trueColor: true, icoBackgroundColor: "-transparent" }, icons: { src: 'logo.png', dest: 'img/build/icons' } },…
- 4 replies
- 1.5k views
-
For those who are beginning to learn CSS3 and getting to grips with HTML5, plus those already creating visually stunning designs, here is a tutorial for Halloween. It is a simple animation with a full walkthrough. Let me know what you think and how you might add to it graphically or otherwise. Create a CSS3 Halloween Animation
-
- 2 replies
- 4.6k views
-
-
Hi All I have always coded in XHTML strict (at least for the last few years anyway). The time has come that a client of mine wants me to totally revamp his website. I originally built the site 5 years ago using XHTML, PHP and a bit of Javascript). My question is, now that I am about to embark on a major revamp, do I code in good old XHTML Strict, or is it time to dip in to HTML5? I have googled the pros and cons and seem some pros to which I think "yes, lets do it" but then I see some cons where I think "oh no, I don't like the sound of that". But to be fair, a lot of the cons seemed to be to do with browser compatibilty, and a lot of the people airing concern…
- 17 replies
- 2.9k views
-
Hey'o mates! I'm looking for a responsive contact form template to use in my website. Can you guys give me some tips? Thanks in advance! Aeneas
- 5 replies
- 2.1k views
-
I was just wondering about how the book now button looks in IE on net render it seems to be all over the place, however when I open IE and view the page the book now button displays perfectly. In safari on my laptop the site is fine on my mobile the contact form doesn't stretch down the page properly. The site is www.scottcherrie-personaltraining.com
-
- 1 reply
- 1.7k views
-
-
I have an htaccess file written, so when a user types in www.domain.com/TheirName, it will display just their name, as well as see their forum details. But for some reason, when I type in 1 name, the whole link shows, and not their name, but for others, it works. Here's what the htaccess file looks like: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /profile.php?username=$1 For my username, the whole link shows, rather than just the name. Any help would be well appreciated. Thanks! Sorry if this is in the wrong section.
-
- 1 reply
- 2k views
-
-
Hello, I am redesigning my website at the moment, and I am using a template for change. The only problem I can't find stuff. I cannot find where I can change the Twitter Handle to my Twitter account, I've managed to change the name to mine @UK_Aspiration, but not the feed/tweets. www.aspirationscotland.co.uk
- 3 replies
- 2.5k views
-
Hey everyone was just curious as to how my site looks across most browsers. I have tested it in all the major ones and pretty much have the latest versions of each browser, opera ff, chrome etc. However some people say the contact form doesn't work, it seems to in mine though and I am testing it online not off. The site is www.scottcherrie-personaltraining.com . Thanks.
-
- 2 replies
- 1.5k views
-
-
Hi guys! What's the best way to make this www.jg-translations.com website fit all screen resolutions? It's not targeted to mobile devices, so I think using something like Bootstrap is unnecessarily complicated. What I want is for the content in the middle to center itself automatically on 1024x768 resolutions and above. Thanks a lot!
- 11 replies
- 2.2k views
-
Pulling my hair out with this, not entirely sure what I'm missing. I'm working on my portfolio and I'm having trouble with my div vertical alignment. They're set to inline-block for horizontal scrolling (anything else messes up big time), but the pivots/origins/scaling directions of the divs are just all over the place, and I have no idea why. My temp divs in the below rows are fine, but I don't know why, maybe it's to do with differently scaled assets pushing others out of line? The site is here: http://kodie.me/test/ . All the jquery stuff is thoroughly documented, since otherwise I have to keep spending half an hour remembering what stuff does every 40 minutes. Here…
-
- 2 replies
- 1.5k views
-
-
Hello! I got some problem with my nav bar. I'm trying to build this https://imageshack.com/a/img674/8589/L6WRR6.gif But for some reason I just can't make it work in the HTML5/CSS3. I want the bar to be responsive friendly so it will be easy to manipulate it with @media. I would prefer to write the logo instead of using a picture and I don't need no help with separators and active state, just the basic HTML/CSS construction. Can someone please give me a helping hand? I'm pretty new to this.
- 4 replies
- 1.6k views
-
Hello everyone I have used a build in contact form from Jot Form which I like but it doesn't display correctly on iphones. I really like using jot form, quick easy and easy to up date. Just need to make sure it works correctly on smart phones. The web address is http://www.scottcherrie-personaltraining.com/contact.html Thanks
-
- 1 reply
- 1.3k views
-
-
I made a css menu and the sub menu is not in line even though I used a margin from the left the same as the width of the menu.. here is my code nav ul { margin:0; padding:0; } nav li { list-style-type:none; display:block; width:150px; height:60px; text-align:center; line-height:55px; font-size:17px; font-family:Arial, Helvetica, sans-serif; } nav a { text-decoration:none; color:#000; } nav li:Hover { background-color:#CCC; } nav ul ul { display:none; } nav ul li:Hover > ul{ display:block; margin-left:150px; }
- 6 replies
- 1.6k views
-
Like the site below I am trying to ad a clickable pronunciation button next to a word. Any idea how? http://dictionary.reference.com/browse/multiple http://www.oxforddictionaries.com/us/definition/american_english/multiple http://www.thefreedictionary.com/multiple (this one is flash I think) I am using HTML5. Here's what I have: <audio> <source type="audio/ogg" src="http://static.sfdict.com/staticrep/dictaudio/lunawav/N01/N0138400.ogg"></source> <source type="audio/mpeg" src="http://static.sfdict.com/staticrep/dictaudio/N01/N0138400.mp3"></source> </audio> <a href="http://click.reference.com/click/nn1ov4?clkpage=dic&…
- 9 replies
- 3k views
-
- jquery
- turn.js
- book
- interactive
-
Tagged with:
Hi everyone. I was wondering if someone could please help me with my turn.js book that I'm making? I'm trying to make this journal-type book and recently learned how to change the size of pages with the .own-size CSS class. The problem I'm having with my book now is that the front and back covers remain where they are after I've closed the book. I've tried experimenting with background colours in the CSS and I've tried switching between "fixed hard" and "hard" in the div tags but have had no luck. This a link to my book as it is now to let you see what I mean http://mystic-akairyuu.zxq.net This is the effect I'm trying to get http://www.turnjs.com#samples/html…
-
- 1 reply
- 4.7k views
-
Hello experts, i am working on app which can be viewed on mobile and tab. i want a fluid layout to arrange the div as shown in the attachment. when it comes to tab it should work in both the ways as shown in the attachment. have used the following code to achieve it Css: div#multicolumn1{ -moz-column-count: 2; -moz-column-gap: 50%; -webkit-column-count: 2; -webkit-column-gap: 50%; column-count: 3; column-gap: 50%; background-color:#333; height:480px; width:650px;} .child{ background-color:#ccc; margin:10px; width:300px; height:220px; display:block; position:relative; } HTML: <div id="multicolumn1"> <div class="child"&g…
-
- 3 replies
- 2.2k views
-
-
Hi all. I am trying out several tools for creating responsive HTML 5 applications. This includes web sites built in that tool. I am looking at the following tools though what are your choices. Mine are based on the UI being ideally not unlike NetBeans, ease of use, and a built in script interface, point and click design. jResponse jQuery Mobile Chrome Dev Tools Codiqa Kendo UI (just started, not familiar yet) I am also interested in how these can tie into Phonegap for projects to create faster development. Again, undiscovered country for me. Steve
-
- 2 replies
- 2k views
-
-
Hi, I am trying to design my own css menu, the issue I have found is that my sub menu is not appearing and I am not clear as to why. Here is my HTML: <div id="MenuDiv"> <ul> <li><a href="#">Home</a></li> <ul> <li> <li><a href="#">Sub 1</a></li> <li><a href="#">Sub 2</a></li> </li> </ul> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </div> And My CSS: #MenuDiv { width:800px; height:60px; background-color:#333; margin-left:auto; margin-right:auto; …
-
- 6 replies
- 1.8k views
-
-
Hi, I have been looking at a few sites and when you scroll down the page a '^' button appears to click they give you an option to click a button to be taken back to the top of the page. I know you have to link to #divname but what I want to know if how you make it appear when the user scrolls down and disappear when they are at the top also how to make it float on the side of the site? I have been searching for it but couldn't as I didn't know what to search for Thanks in advance
- 3 replies
- 1.6k views
-
Hi, creating a website, and for some reason, i have excess space on the right side of my page that i can scroll to and for the life of me, i can't figure out how to get rid of it. Here is a screenshot: Here is my code HTML: <html> <head> <title>Sugar Stop</title> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body> <div id="wrap"> <div id="container"> </div> <div id="header"> <img src="images/mainlogo.png" class='MainLogo_size' align=left alt="Find out the challenge rules." align="left"></a> <div class="menu"> <ul id="navigation" …
- 9 replies
- 2.1k views