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
-
Hi I am new to Datatables and am trying to get five functions working that appear on the example here - http://datatables.net/ The four functions are: - the arrows in the header that switch from top to bottom - the show entries box in the top left corner - the search box in the top right corner - the 'Showing 1 to 10 of 58 entries' display in the bottom left corner - and the pagination in the bottom right corner - I want to have just the two buttons - forward and back How can I get these to work. Here is the link to my page - http://dev.assessmentday.co.uk/feedback.htm If anyone could help me out that would be great. Thanks.
-
- 0 replies
- 1.4k views
-
-
i am making a website on how i build my aquarium / fish tank products. i have brought a few items throw a cash back site and i want to put a link of the items i brought and used in my builds so that they track throw my cash back account when the people click on my link on my website are taken throw the cash back site invisibly and end up at the product page. i.e. my page talking about my product linkclick on link invisibly go throw my cash back account to product page so when they buy the item i get the money from the site thanks for any help you can give me
-
- 0 replies
- 919 views
-
-
Hi there, I am really stuck as to what to do with this huge project i am working on at the moment. I need lots and lots of slideshows through out the website and what i really wanted is a html based slideshow which can be automatically updated from an external server. I use Adobe Dreamweaver. I originally wanted to use flickr as the external server and still do. But i couldn't get the slideshows to work how i wanted them to (i.e without Flickr logo all over them) is there any other way to do it using Flickr or another service ? Thanks in advance - S
-
- 0 replies
- 993 views
-
-
Hello! I'm new to this site and am hoping someone out there can help me. I know this is an easy fix for someone with more CSS experience than me, so I am hoping I came to the right place I'm working on laying out this site for a client; because of the odd-shaped content box I sliced it up and am trying to put it back together inside the container div. I thought they would all just align properly, but not so much. The piece that should be to the left has fallen below everything and the chunk that is supposed to be the main area is pushed all the way left inside the div. The screenshot I attached is how it *should* look. The site is up here for you guys to take a …
-
- 1 reply
- 870 views
-
-
Hi guys, I'm new here and I have a small question. I'm looking to build a website that would have the following characteristics: - it will be a quiz website - users will use usernames and passwords to login - questions from the quiz will be randomly selected from a database with questions - there will be a countdown timer for every question. if no answer selected, you will automatically go to the next question - users get points for answering correctly to their questions and there will be a ranking page that everyone will be able to see I'm thinking about 3000 monthly unique visitors and 10 000 questions to start with. I have the idea, now i need to…
-
- 4 replies
- 1.1k views
-
-
Who knew this existed? https://dev.twitter.com/docs/cards Couple of meta tags on the site and anytime someone tweets that URL it shows up like (below). I thought they generated these automatically but it turns out you can control them. Nifty
-
- 2 replies
- 1.1k views
-
-
Hi there, I am having trouble adjusting the height property in CSS for Internet Explorer, whenever I change the value of this property and go back to the page and refresh, it makes no difference. I have even made an image of the background color for the div I am trying to adjust, with a height of only 365px, but the web page does not reflect this in IE. Here is my current code: html: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive"> <…
-
- 6 replies
- 878 views
-
-
Is it possible to include a php insert on all my pages for say a footer if I originally wrote the pages in just html?
- 7 replies
- 1.1k views
-
So here we have it, a wrapper and 3 boxes, now i understand why its not working but is there a solution... because the wrapper has no defined height the 3 boxes inside without any content can not be height:100%, How can we fix this? Is it possible to fix without the use of javascript.
-
- 1 reply
- 876 views
-
-
Hi, to promote a website I have created I have set up a newsletter for users of the site. I have added a page where users can subscribe/unsubscribe but I would like to add the unsubscibe feature to my newsletter. Can anyone help me with the correct html code that I can add to a button, so that if a user clicks the button it automatically sends me their email address without it opening up their email program, it just does it in the background? Cheers
-
- 3 replies
- 879 views
-
-
Hi all I'm looking to build an infinite carousel that is manually scrolled with arrow buttons left or right. I presume this'll use the JQuery SlideTo function. Here's an example of what I'm after: http://www.balloondog.co.uk/ It needs to overflow the viewport. How would you guys go about achieving this?
-
- 0 replies
- 860 views
-
-
Hi guys, I have this script for a simple slideshow below and I need the box of the slideshow to be in percentage rather then pixels. I highlighted the part where I think it should go but how do i go about in doing this>? Thank you so much <script type="text/javascript"> $(document).ready(function() { var currentPosition = 0; var slideWidth = 600; var slides = $('.slide'); var numberOfSlides = slides.length; var slideShowInterval; var speed = 9000; slideShowInterval = setInterval(changePosition, speed); slides.wrapAll('<div id="slidesHolder"></div>') slides.css({ 'float' : 'left' }); $('#…
- 1 reply
- 1.2k views
-
Hi all, Can anyone tell me how to do a html email, i know how to write html etc, but just never done an email before. Thanks
-
- 2 replies
- 873 views
-
-
Hello there, Firstly I don't know if this is the right place, so I apologize in advance if I posted in a wrong forum, but I think comments are related with JavaScript. I have a wordpress website. And I would like to know, if it is possible to make a commentary page. So basically a page where you would post your status updates/comments. Just admins, no one else. Example is this: http://live.autosport.com/commentary.php/id/487 Is there any similar plugin available? Can be a comment system(like disques) integrated? Or is this totally custom made? If yes, how much would this custom work cost? Would really appreciate any of your help or suggestions, thank…
-
- 8 replies
- 3.5k views
-
-
Hi I was wondering, without the use of javascript, if it's possible to have a link which shows and hides a block of text below it on click. This would also have to push the content below it down when opening. Thanks if you can help
-
- 4 replies
- 910 views
-
-
Good morning, I'm really after some advice on how I should approach a particular scenario regarding form validation & i'll try & explain what i'm trying to do the best I can below. I have a form with 5 input text fields & a submit button that is disabled until all fields are completed without any errors before the submit button becomes enabled allowing the user to submit the form. If a field is filled in incorrectly or not at all the error span class for that particular field is populated with an error message via the innerHTML command. My original idea was to set an onblur event on each form field so that it loops through each field including …
-
- 1 reply
- 876 views
-
-
Hello, I want to embed social network icons on webpage. I want it to be sticky on a page i.e. not moving when we scroll the page. (Refer: www.ibm.com) On this site you will see the icons on the right side, which remains fixed when page scroll. I found a code on Dynamic Drive but it has text in it, and I wish to have image instead of it. Can anyone help me? Thank You All in advance.
-
- 1 reply
- 1.3k views
-
-
Hi Folks, I have a site over at www.olympicsbuzz.com. If you click Olympic Mentions in the menu you'll notice an animated chart pops up. If you click next you'll notice that the next chart animates. This is great but continue to click next and no animations happen. I've managed to isolate this down to the last function in my JS file. Basically, when you click next it adds a class of 'current' to each chart based on whether it's the current chart or not but for some reason it only adds the current class to the last chart. The previous button works flawlessly. I've included my full JS code below. Hope you can help. Thanks. var olympics_mentions_data; var …
-
- 0 replies
- 861 views
-
-
Basically I have a problem with a tabbed set up I have on wordpress, which should work fine. I am using this tabbed AJAX plugin found here: http://www.jquerytools.org/demos/tabs/ajax-history.html#ajax1.htm And as you see below, the htm pages load, but the php page does not; any help is appreciated! I have tried StackOverflow and other forums but still no reply. <div class="tablocation"> <ul class="css-tabs"> <li><a href="<?php echo site_url(); ?>/wp-content/themes/blue-and-grey/uni-general.php">General</a></li> <li><a href="<?php echo site_url(); ?>/wp-content/themes/blue-and-grey/uni-courses.htm">…
-
- 6 replies
- 875 views
-
-
Hey guys and gals - I need to create this effect: To a H2 tag on my site - just like http://www.mcfc.co.uk/ They do it using JS and an SWF file - but is there a way to get the background of the block only coming to 10px longer than the actual line of text with just css(3)??
-
- 3 replies
- 950 views
-
-
I am planning to build a map on my site so that any visitors could also drop a pin about their locations and posting their comment/data. Do you guys know any out-of-box solution in which I can add this to the site easily?
-
- 3 replies
- 902 views
-
-
According to its tutorial if I change the width of #moving_tab & I'm to do the same with the width value in .item, .lava, .panel, ul. which I have but the sliding Panel loses alignment and drops everything that should appear under Recent Posts into the 1st slider window which is Popular posts. The overall goal is to get it to function like this sites: Full Ride Listing The width for the code is set to 968px which is my main content and the rest of the pages size but even with this width everything that is suppose to go under the 1st tab "Popular Posts" carries over and shows half of itself on slide tab 2. Also when it is at 968px both Panel 01 Item 1…
-
- 0 replies
- 1.1k views
-
-
Hi, Anyone know some JavaScript that can make something like this? CLICK HERE (I dont know flash)
-
- 3 replies
- 876 views
-
-
Hi all, I am currently getting a divs contents to change when the user mouses over an image. The probelm arises when I have one set of images to change one div and another set of images to change another. The links for these two tests are here - Example 1 Example 2 I have played around with the javascript but cant get it to work properly. <section> <div id="web_about_text_1" class="web_h">Initial Header</div> <div id="web_about_text_2" class="web_p"> <p>Inital Content</p></div> <div id="web_about_0" i="0" class="web_about_1a left hand" data-name1="Consultation" data-desc1="Web Content 1"> <img sr…
-
- 0 replies
- 872 views
-
-
Good Afternoon. I am in the process of designing my portfolio website and am having problems with incorporating Javascript code into the website. I downloaded a free slow scroller javascript code and wanted to use that on mapped images. Is there a way to do this with Javascript. http://webdesignandsuch.com/using-smooth-scroll-with-page-anchors-and-javascript/ smooth scrool code. This is the website http://www.salvaralaspalomas.com/ademola/ Thank you.
-
- 0 replies
- 853 views
-
-
-
Hi, A friend of mine has modified a Prestashop theme I bought, but didn't put a background image on it, which I wanted. I tried to do this myself, but unfortunately the header is an image, which has now been hidden behind my full screen background image. Part of the header image is covered by the background on a large screen, but the whole header is gone on a smaller laptop screen. Does anybody know how I can set the stack order to push the background to the very bottom? I've tried CSS z-index, but this made no difference (I may have got the syntax wrong). My Test Site Attached is my global.css file, if anybody would be so kind to give me some pointers. …
-
- 1 reply
- 871 views
-
-
Hey, Made a site for a customer but it quite literally moves by itself and its really frustrating. I have gone through all of the CSS and HTML and cannot work out why the first three pages are one position and the next are another. The site is at: http://hostingvortex.co.uk/Previews/Params/ If anyone could help by taking a look would be appreciated. Regards Aaron
-
- 2 replies
- 879 views
-
-
So I just started learning Javascript and I might have a lot of questions about it. Please excuse me if I get annoying with my questions..I am just trying to understand how Javascript works. I'm learning from the W3School website just for anyone information. Okay let's get started! <!DOCTYPE html> <html> <body> <h1>My Web Page</h1> <p id="demo">A Paragraph.</p> <script type="text/javascript"> document.getElementById("demo").innerHTML="My First JavaScript"; </script> </body> </html> So basically the code above has Javascript using an ID named Demo. The ID is used to make a pa…
-
- 8 replies
- 964 views
-
-
Currently I'm learning the OOP Pattern of Javascript however, for some reason it doesn't alert out or write down the code. All I get is a white page with no single alert. This is an example in the book itself. function Person(name, age, job){ this.name = name; this.age = age; this.job = job; this.sayName = function(){ alert(this.name); }; } var person1 = new Person("Nicholas",29,"Software Engineer"); Following a little further in the book they say I can make a constructor of it. alert(person1.constructor==Person); Now is there something I miss on declaring the codes? The codes are placed in the body element tag./
-
- 2 replies
- 878 views
-
-
Hey all, I'm in the middle of creating my portfolio site and have been looking for a decent javascript banner slider to go at the top. Looking around the web I've not found a decent tutorial and would much rather learn how to make it than buy one. Does anyone know a good resource on this? Cheers for any help guys.
-
- 6 replies
- 892 views
-
-
On the website that I'm making, I have quite a lot of inputs that I ofcourse want to check when people are typing something in. But making a function for every single page is kind of annoying and I thought that there might be a better solution to this. For example when registering an account it would check the 2 input types password and see if they're equal to eachother, if not it will change the class of the inputbox so it gets a red outline. And also for other stuff like email adresses. So is it possible to do something like this in Javascript?
-
- 3 replies
- 918 views
-
-
Hi Guys When I visit my new blog, I see an issue with the header, it is overflowing to the sides a bit, like this screenshot, is it same for you ? Cause on Chrome on my VPS box, I don't get that issue, but on Chrome on my local PC, I do get that ! What do you see ? Thank You. Ciwan.
-
- 3 replies
- 875 views
-
-
Hi, Does anyone know why some of my tags are coming up as errors in the W3C HTML validator? The errors are 'Stray end tag'. What does this mean? Thanks. Rich
- 4 replies
- 1.1k views
-
Hello, I wanted to ask a question and some advise. I want to get into web designing, I have a real interest for it, just the idea of creating something unique and to your own desire is an exciting thought for me. I do have a IT background, and have little experience with programming. I want to be able to get on this level some day, to be able to create web sites like this; http://www.webdesignerforum.co.uk/files/file/7-append-creative-photoshop-template/ So I basically wanted some advise on how I should go about learning. So far I'm reading this book; http://www.amazon.co.uk/CSS-The-Missing-Manual-Manuals/dp/0596526873 Which should ground me well…
-
- 1 reply
- 1k views
-
-
Hey everyone, I am currently trying to create a form that has a button to add extra fields to it, should they be needed. I am using straight Javascript - no Jquery, and the code that i have creates the elements as it should but a second later they disappear. Does anyone know how i can stop this? I have also adapted the code to change the color of text and opacity of things just to see if that worked and it does the same thing - changes colour/opacity but then goes back to normal. Here is the code : function addField(element) { var newElem = document.createElement('input'); newElem.innerHTML ="<input type='text' name='myInputs[]'>"; d…
-
- 13 replies
- 8.8k views
-
-
Hey all how do i implement a font that the client has provided , such as a custom "DIN Schrift" font, firstly do i use font face? and secondly, how do i implement the font , it doesnt appear correctly when I code it with CSS as it does on the PSD, as the font family is DIN Schrift, but the font weight instead of having bold , normal, italic etc, it has "1451 Engshrift" , so how do i get 1451 Engshrift to be its style in CSS?
- 2 replies
- 904 views
-
Typography question : How cufon-yui.js exactly works ? Accessed a site which employs Arizonia.ttf , a font I have not installed on my system, however the logo is renderized with this font. I´ve analyzed all the code seeking for absolute URLs pointing the path toward such font over the web but there is no one at all. I´ve seen a couple of sites on which there was a folder with the ttf files. It is not the case this one. So where it is going to pick the ttfs to work ? The other question is how to change arizonia by the other fonts I employ on my logo ?
-
- 5 replies
- 15.2k views
-
-
Hello Can anyone help me please. Basically I want to click an image rather than a link to display the inline content from Fancybox. Code: <script type="text/javascript"> $(document).ready(function() { $("#information").fancybox({ 'titlePosition' : 'over', 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); }); </script> <div id="informationbox"><a id="information" href="#inline1" title="Title Here">Important Information</a> <div style="display:none"><div id="inline1" style="width:700px;height:450px;overflow:auto;"> Any help apprecia…
-
- 1 reply
- 865 views
-
-
Hello, Before I start, I have never been taught and have low experience with html and css coding. I have simply picked it up and used a lot of google to create my website www.basementrecording.co.uk I am currently in the process of upgrading the site to a more modern html5 and css3 website. I have an image which is 2000px in width. The text is centered on the image. I wanted it to look like a banner all the way across the screen with the name of the business on it. This is the current code: <div class="main-container"> <div align="center"> <img src="images/header.png" align="absmiddle"> </div> If the image is smaller in wi…
-
- 8 replies
- 2.8k views
-
-
Hope this is the right section.... Anyway can anyone help with the process(es) and steps of getting a raw wmv video file to launch as a flash video with media controls, launching in a lightbox, upon clicking on an image link. Do i need to convert the WMV video to a SWF or FLV file first? Can anyone point me to a good script that will take care of my needs? Thanks
-
- 0 replies
- 997 views
-
-
I know how to use CSS to apply hover effects on SVG, but I'm after sometime a little more complex. Imagine you have a bunch of SVG elements that overlap one another. Is there anyway that you can affect all elements within a certain proximity of the mouse? i.e. When you hover on one circle, the surrounding circles are affected too. Any ideas? Edit: I should note I'm using Raphael.
-
- 1 reply
- 946 views
-
-
How to submit forms with onClick <a href="#" onClick="document.getElementById('ContactForm').submit()">Send</a> I ask you please some guidance. As I have not found elucidative literature I made up my mind to post. How to pass variables with data to my php script ?? <form method="POST" name="form" id="form" class="form-1" action=""> Thank you for your attention.
-
- 7 replies
- 900 views
-
-
Was trying my hand out on this tutorial, and then I was asking myself how you could make the site scroll horizontally instead of vertically. Tutorial: http://webdesign.tutsplus.com/tutorials/complete-websites/create-a-parallax-scrolling-website-using-stellar-js/ Demo: http://webdesigntutsplus.s3.amazonaws.com/tuts/338_parallax/src/index.html Anyone?
-
- 0 replies
- 2.2k views
-
-
I am following a tutorial but its not working for me Trying to get a dynamic div to load content from 3 pages. ANY IDEAS? Here is my code: HTML <!DOCTYPE html> <html> <head> <title>Dynamic Page | Home</title> <link rel="stylesheet" type="text/css" href="style.css" /> <!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script type="text/javascript" src="jquery.ba-hashchange.min.js"></script> <script type="…
-
- 0 replies
- 980 views
-
-
Hi, Just wondering if anyone can help me out. I am working on my ow personal website, and would like to build a one page scrolling website using php includes (To make easier to manage each page) I have built the structure, and included the head.php file that links to the css etc. I have also included a footer.php file and this works correctly. As this is going to be a one page scrolling site, I thought I would be able to have a section for each page and simply include that page via the php include method, however no content from these pages will display. Here is the code for my index.php page Thanks. <!DOCTYPE html> <html lang="en"> …
-
- 9 replies
- 1.2k views
-
-
I recently bought some lovely looking css buttons but have no idea how i can include them in my posts. I have a folder called 'Assets' within it i have - 'css' 'img' could someone help me install these onto my hosting and show me how to include them in posts please. much appreciated thanks
- 5 replies
- 1k views
-
Morning all Should my internal links have the .html extension or not? Is this better than... <a href="apage"> this <a href="apage.html">
- 7 replies
- 873 views
-
I've been reading about OOCSS and I really don't like the idea, although it cuts out code and makes things a bit more faster, it really isn't good in my opinion. Basically people are reinventing CSS and may as well come up with their own eBay. LESS & Sass is now being discussed across the internet and these two are also making things confusing. What I would like to know is - Are these needed in web design, can't we just stick to CSS and do it properly and quit messing with things? Opinions would appreciated. Thanks Aaron.
- 13 replies
- 1.6k views
-
Can I use bootstrap framework for a commercial product? If yes, what need to be taken care?
-
- 2 replies
- 2.4k views
-