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
-
I have installed wp responsive theme for my site http://wdf.co/sdream and http://wdf.co/insight in mobile view, sub menu not working? what is the exact problem for in this case..
-
- 5 replies
- 1.8k views
-
-
The lightbox works fine, but in the w3Validator I am getting an error message Bad value lightbox[set] for attribute rel on element a: The string lightbox[set] is not a registered keyword or absolute URL. and it referees to the following code <div class="projectBox" style="margin: 0"><a href="images/SMILE17.jpg" rel="lightbox[set]"><img class="opacity" src="img/prj01.jpg"></a></div> <div class="projectBox"><a href="images/DEC14.jpg" rel="lightbox[set]"><img class="opacity" src="img/prj02.jpg"></a></div> <div class="projectBox"><a href="images/SMILE13.jpg" rel="lightbox[set]"><img cl…
-
- 2 replies
- 3k views
-
-
My aim is to create a form whereby the user can input the number of a services required (in a text input box that validates numerically), and where I can specify the price. The catch is that I need to be able to specify how the price adds up i.e if the user enters "1" the quote generator needs to output "£50" however if the user inputs "2", the quote generator needs to output "£99". The further catch is that it needs to be possible for the user to input any number up till 100 before a pop-up advises to email for a quote. The closest thing I've been able to find from searching forums and google has been this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transition…
- 18 replies
- 6.8k views
-
Need some Web design help. I'm trying to create an interface to a PHPBB board which uses ajax. I've used Jquery's .LOAD to write the output from the /phpbb/index.php to a DIV in my page. It loads up everything correctly minus all the CSS. I've been going through the template files and writing a piece of jquery to catch the link .CLICK and use the .LOAD to writed it to the DIV but I can coming across a lot of {U_SEARCH} type pieces of code which I cannot pass into the .LOAD of the jquery. I'm not great with PHP and any clues as to what I should be learning will be a great help >>
-
- 0 replies
- 870 views
-
-
Hello, I have a series of addresses on my contact page. I have a 1200x250 px series of maps for each address that goes across the top of the page. I want to click on an address, and the image changes to the image of that map of the address. EASY! So, what I have done so far. I have got a jQuery script: var itemInfo = { // Initialise the item information img1: ['/img/map.png', ''], img2: ['/img/map2.jpg', ''], img3: ['/img/map3.jpg', ''], }; $(function() { $('#maps a').click(function() { // When an item is selected var id = $(this).attr('href').replace(/#/, ''); // Retrieve its ID $('#info img').attr('src', itemIn…
-
- 3 replies
- 1k views
-
-
Does anyone know a way to save hi-res large google maps images eg 1600px width? I know google renders it automatically just like on here: https://plus.google.com/117478287139012796858/about?gl=uk&hl=en I can grab the url of the image and save it, but this is only for specific businesses. I want to be able to put a marker in and download a rendered image around that marker. Does anyone know how I can do this? Anyone know or done this before?
-
- 0 replies
- 981 views
-
-
Hi, I am trying to create an effect similar to this website where the pages slide both horizontal and vertically either by navigation elements or keyboard arrow press: http://holler.co.uk I notice however that the URL remains the same and with me needing a separate URL for each page for Google ranking I wondered if there is another way to achieve this look in doing so? Many thanks
-
- 1 reply
- 875 views
-
-
I am trying to create a box in a page which opens up an area of another page and site and then allows me to play the media. The media is not owned by the site so there are no copyright issues there but somehow the page reacts differently from when I view the page normally to viewing the page in an iframe. When I view it normally I can play any media file I like. When viewing in a n iframe it asks me to sign up and become a member. Is there a way around this so that I can view the box and click play and it respons exactly as if I was a normal visitor to the page? The site link is as follows: http://hypem.com/track/1h68f/TODD+TE...nspector+Norse The HTML I have so fa…
-
- 0 replies
- 1.5k views
-
-
Is it any way how to fit menu buttons automatically in div with static width ? I have two buttons and both has same padding is it any solution how to automatically adjust padding in case that third button is added ? Keep them in a middle with same padding from cell of div and each other but with ability to adjust when next button will be added . Hopefully someone will understand my language Live example here: http://jsfiddle.net/WPZ2n/
- 5 replies
- 1.2k views
-
Hello everyone, I'm here to ask you information about a Javascript function, I was said there was a JS function allowing the user to upload an image file through a form as exemple and displays this file as a thumbnail. I'm not talking here about JQUERY, but really something done without any framework. I've searched but I can't find it at the moment. I'm curious about it, anyone would know that function ?
- 2 replies
- 1.3k views
-
Hi there I want to make a main title of a commerce web page. The thing is, I dont know if they just use webfonts for these or they use photoshop elements to make this part. For example, the "Amazon" word in the main heading of the amazon.com, or in fact any major website has a main header/logo, which tents to be clickable and returns you to the home page. Does anyone know, I know they used to do it with graphics, but what do most people do today now that webfonts are out? I think it has an impact on SEO, and this is why I'm debating which way in my mind I should go. What is the norm? Photoshop graphic, or html, or some kind of webfont thingy? I have the font I want…
-
- 4 replies
- 907 views
-
-
How come text looks a little worse on IE10 compared to FF 21.0 ? Text looks clearer on FF ?
-
- 3 replies
- 1k views
-
-
Ignore the Form, in the HTML. I want to know if the ID#header and the class=amazing is done right. There isn't any purpose to it, I'm experimenting. The only purpose is I want the class=amazing to be able to move around freely within the ID#header, is the style clean or could I have styled this better ? <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> <!-- body { color:#f5c; background-color: #f54; padding:0px; margin:0px; border:0px; } legend {font-size:larger;} fieldset {border:0px; } label {co…
- 14 replies
- 1.2k views
-
Hi I am trying to add a fade in affect on the span elements onhover of the image, but unsure how? <script> $(document).ready(function(){ $('a.someclass').mouseover(function(){ div = $('div.someclass'); div.stop().animate({visibility: visible}, 150); }).mouseout(function(){ div.stop().animate({visibility: hidden}, 150); }); }); </script> </head> <body> <div id="wrapper"> <aside> <nav> <ul> <li class="home"><a href="index.php">home</a></li> <li class="portfolio"><a href="portfolio.php" style="color: #8f5069;">portfolio</a></li&…
- 4 replies
- 1.3k views
-
Hello, I am really unsure of how i am going to make this website. I want to make one of them sites that are sharde a lot on facebook. Where you can browse through funny pictures and memes.. here is an example: http://roflzone.com/so-i-was-hit-by-lightening-2/ On this site you can just use the next button to browse through the videos. What I want to create for my site is an upload form, so i can just upload an image (type in image name with a input box on the form) and then it will automatically be added to the overall image libary.. any ideas on how I would make it dynamic enough so I could just add pictures with a form and itll just be added to the site?
-
- 0 replies
- 1.1k views
-
-
Hi, I need some help positioning my logo. I can't get the logo to move with the webpage. I used a ap div tag and I know its wrong but it was the only way I could get the image where I want. I don't know much about website design but could really do with some help off people who do. Not really sure what people will need to see to help so please let me know. Hope to hear from someone willing to help with a bit of patience Thanks
-
- 3 replies
- 907 views
-
-
I am trying to indent the categories on a dropdown on WP site but it won't work. Could someone take a look and tell me what I need to do to get it right? The URL is http://agirlhastoeat.com/ the css is:- #jquery-categories-list-widget li{border-bottom:#500830 1px solid; border-top:#833b63 1px solid; padding-top:5px; padding-bottom:5px;} #jquery-categories-list-widget ul {margin-bottom:-8px;} #jquery-categories-list-widget.firstchild{padding-left:10%;} .jcl_symbol{padding-left:3px;} Thanks in advance
- 1 reply
- 1.2k views
-
Hey guys, http://www.canaljunction.com/index-chris.html Working on this latest project, managed to hack round with an existing dropdown script on the "quicklinks" which was fairly old (2006) to overlay over the top (originally it pushed entire site down) but I've got a bit of a strange bounce on it when you try to close it again? Can anyone see why? Thanks! Chris
- 3 replies
- 1k views
-
I've created a div tag called "footer", using an ID selector (#footer). I've tried to style the links within this div tag, this is the code I've written. #footer a:link { color: #FFF; text-decoration: underline; } #footer a:visited { color: #FF0; text-decoration: underline; } #footer a:hover { color: #CCC; text-decoration: none; } #footer a:visited:hover { color: #FF0; text-decoration: underline; } They all work perfectly, apart from this one. #footer a:visited:hover { color: #FF0; text-decoration: underline; } When I preview my site in an internet browser and point to a visited link, it takes the underline away. The colours work properly, but the under…
-
- 4 replies
- 1.9k views
-
-
Hello! My company bought Inceptio WP theme and i translated almost all fields, but i couldn't translated contact form fields. I can't understand where i should change the labels in php file (I don't know php), for instance from Name to Имя. I understood that i need make changes in Inc_Form_Shortcode.php file but when i tried to change English words in this php file- nothing happened. Maybe i don't see my mistakes. I will be very greatfull for any help! My problem page here <?php class Inc_Form_Shortcode extends Abstract_Inc_Shortcode implements Inc_Shortcode_Designer { static $ID_ATTR = "id"; static $ACTION_ATTR = "action"; static $CAPTCHA_ATTR = "ca…
- 3 replies
- 1.6k views
-
Hi! I hope you will act against me normaly I m a new guy in these thing, learning html and CSS, for two days, so.. i made up my site, where im repeating what i learnd, I use first lines of codes eaqual in two linked pages - couse i wanted pages eaqual each other, but with the same code, pages looks bit diferently in Chrome, but when u go thru IE there u see some big differences, what i need to repair this mistakes? And second thing - im working with Adobe DW and here he is doing the same like IE, one page he shows like this - And second - You can check what im saying - http://www.ervains91.tk Sorry pals about my english, about IE i heard there need to put…
-
- 0 replies
- 981 views
-
-
I'm trying to keep this site responsive and have all the images you see on the landing page scale down with the browser, As a test I have set the li's containing the images at 40% width and the images inside 100% with auto height, but i can't figure out why this is not working and it's overflowing. I figured that setting the li height to auto would automatically fill according to the image, but it just goes mental. Any help would be greatly welcomed! http://dev.lecollective.co.uk/clients/2013/Pollyking/
- 5 replies
- 1.4k views
-
Hello guys, Could you possibly have a look at: http://www.talbotgardenservices.com The problem I have is that, in the footer, I am trying to put a "Callback" form. Customers put their number in the form, hit Send and their number is emailed to me. The weird thing is that I can't get the input field to sit level with the submit button - it's like there's a 3px (approx.) margin at the top of it and, whatever I do, it sits a few pixels below the submit button. I am using the Thesis theme for Wordpress and that particular piece of code is produced by the "Contact Form 7" plugin. Any help would be GREATLY appreciated - it's driving me mad!! Thanks for y…
-
- 1 reply
- 895 views
-
-
Hi all, I'm quite new to jQuery so I've probably got this a bit wrong. I've made an animated slider but when I click the purple nav square to move to the next panel, the new nav squares don't animate in at the same time, the first one does then the second. should I be grouping the elements somehow and fading them in as one? I've tried googling this and read about '.add' but it's doing the same thing. Thanks guys <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.m…
-
- 10 replies
- 1.5k views
-
-
Hi i am using this blog tutorial http://tutorialzine.com/2013/03/simple-php-blogging-system/ and it uses md files for the actual blogs. How do I create md files? For example adding links, bold text etc etc. Is there a website that will style text and save as an md file? Thanks
-
- 1 reply
- 878 views
-
-
Hello, I'm pretty new to webdesign and CSS. With my site, I seem to have a problem, For some reason on most of the pages (Apart from the Home Page), The text is not in line with the background. Here's an example of a page: http://tri-airvirtual.com/index.php/pilots Here is my CSS: /* moodalbox CSS */ div#mb_overlay{position:absolute; left:0; width:100%; background-color:#000; cursor:pointer} div#mb_center, div#mb_bottom{position:absolute; left:50%; overflow:hidden; background-color:#DDD} div#mb_center{background-color:#FFF} div#mb_contents{width:400px; height:400px; border:10px solid #DDD; overflow:auto; background-color:#FFF; visibility:hidden} .mb_l…
-
- 0 replies
- 1.4k views
-
-
Hello! I am trying to make one of them websites where you can look through photos. but i want my URL to be a basic one such as: www.site.com/image563/ www.site.com/image564/ or www.site.com/image/563 www.site.com/image/564 etc. Anyone know how would achieve these? the only difference between each page would be the image being shown. thanks!
-
I need to make a select menu that adds values to a separate field which can in turn be submitted. I think this is called a listbox? Ideally, I'd like it to be a bit like tags in Wordpress where if you start writing it will auto complete. I've found a few plugins that do this very nicely (notably http://harvesthq.github.io/chosen/ ) but there is a catch. I need to be able to submit the same value twice and as an array. They have to be selectable as well as they are coming from another source. Does anyone have any suggestions on how to do this? Or a better way to describe it so I can look it up?
-
- 0 replies
- 948 views
-
-
If you've ever tried to create an image gallery with captions, a product catalog or other floating block elements with automatic heights it's likely you have been tempted to use tables or create unsemantic surrounding divs. But now those days are over. I've created a cross browser solution that supports responsive design using lightweight raw JavaScript. Say goodbye to tables and css hacks and hello to JavaScript. Source Code here: http://www.nielsharbo.dk/videotuts/alignheights.zip Suggestions for improvement and other relevant comments are more than welcome.
- 5 replies
- 1.6k views
-
So i've begun creating an estimate form for my wife's website. Many thanks again to those who have helped. Now here's my next question, what is the best way to make it so that that once the customer fills in all the info they can hit a "submit" button and all the info from the form gets delivered to her email? Thanks in advance, Jimmy
- 2 replies
- 1.4k views
-
I have the following code in css: *{ padding:0; margin:0; } body { width: 605px; height:987px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin: 0px; padding: 0px; background-image: url(bk_03.gif); background-repeat: repeat-x; } #container { width: 605px; height:987px; margin:auto; } #header { width: 605px; height: 987px; margin: auto; background-image: url(layout_02.gif); background-repeat:no-repeat; position:relative; margin-top:+1px; border:0; } and the folowing in html: <title>Untitled Document</title> </head> <body> <div id="container">…
-
- 2 replies
- 884 views
-
-
Hi So I have an image 850 pixels high, but the div that I want to put it in, seems to require a height of 950 pixels to display the entire image. Is this strange or expect behaviour? David.
-
- 1 reply
- 881 views
-
-
HI there I'm interested in making a website with the first 500px worth of height taken up by a full width image. I have it in a body like this: <body> <div class="container"> <div id="main_image"> <p>Let me put some content here.</p> </div> <div id="main_text" </div> </div> </body> There are a couple of problems with this. 1) the image doesn't go all the way to the top of the screen. There are about 15 pixels at the top that it doesn't cover. I imagine this is from the fact that its a div nested within a div nested within the body. So I have so…
- 1 reply
- 885 views
-
Hi all, I have got a sticky footer on earthly-goods.co.uk and that seems to work well and solve the problem of overlapping content but now the text sizes on certain pages is inconsistent and a lot larger than it should be. All pages use the default p class yet they don't all follow the text size rule. I have attached screenshots of it is chrome on HTC One X. Very annoying so any suggestions on how to fix are gladly accepted! Thanks, Jack
- 1 reply
- 1.2k views
-
Hello, Everyone here at WDF has been so helpful. Forum member Lyndsey gave me this: http://jsfiddle.net/LyndseyB/GJLCF/ It's exactly what I'm looking for but I'm a beginner working on dreamweaver and I cant get it to work. I plugged the html into the body and the javascript into the head. Am I missing something? Is there a plugin that I need? Another code I tried that works awesome can be found here: www(dot)webdesignerforum(dot)co(dot)uk/topic/62025-please-help-my-to-add-a-calculator-to-my-website-pretty-please/ but it only has dropdowns and i need some check boxes also. Thanks Lyndsey! I can't contact anyone as I'm still a newbie and I have restrictions on my a…
- 17 replies
- 3.1k views
-
Hi, I've been searching for a method to preview my site in multiple browsers without paying for a online browser preview tool, and without having to have all common browsers installed locally. Is there one solution that atleast will update all the browsers and I only have to install the program ?
-
- 5 replies
- 1.2k views
-
-
Hey, can anyone for the life of me work out why there is this extra space underneath the footer? http://nurdit.com/styleengineered/portfolio.php
- 3 replies
- 1k views
-
Hi guys, I've been playing around with the css and have ballsed up the sub menu (on contact us). I can't seem to sort it. Can I have some fresh eyes on it please? I'd like it to come underneath contact us and outside of the nav bar. http://bit.ly/11hiSrr
-
- 1 reply
- 1.2k views
-
-
Hi all, I've added Lightbox 2 to a new site I'm building, but it has issues in IE8. Is there anything similar to Lightbox out there, that's free and nice. Thanks. Al.
- 4 replies
- 878 views
-
Hi, this is more to do with lightbox, fancybox, slimbox etc... It seems rel doesn't validate in HTML5. (I'm using slimbox btw) I've replaced rel with class in the HTML and within the JS file. It is working fine, except the prev and next images and the image caption - not displaying at all. Has anyone had any issues with this before? Cheers. Al.
- 11 replies
- 1.1k views
-
Hi there, http://jsfiddle.net/d5q9k/ I've got this site using Bootstrap with a fixed header, footer and centered content - and have two questions. 1) Is this the correct way to go about doing this? I've read enaldess forums with different views on wether of not fixed posisions are a good idea. However, after testing this in many ways using emulators and all the devices I could get hold of, it's worked perfectly fine. (Plus it's using existing styles from Bootstrap, they even have a template exactly for this) so just for clarity, is what I've done an acceptable way of doing this? 2) When the screen gets really small (Iphone landscape for example) the header…
-
- 2 replies
- 1.7k views
-
-
Up till this point I haven't done much pre design in photoshop for my layouts (I can hear a lot of sighing). One reason because I'm an amateur and can't get anything to layout where I want it with css lol. I'm going to design for a new site, but from hereon I'm doing everything for mobile first, what about you guys? Most of the people I know have Iphones, so I was going to model it around the Iphone 5. Now it's screen specs from apple are 1136 x 640px; but this does not take into consideration the toolbar in safari (back a page, forward a page, home etc). I'm going to do a lot more design this time so the images are sized to fill the screen of the iphone5. What do…
- 7 replies
- 897 views
-
Hi! I'm a newbie of making a website. I made portfolio website for me but I don't know how to make the content stay in the middle of the webpage. I'm using Dreamweaver and am new to code languages. This is my current webpage http://jussilaitinen.net/ and I want the background moving the same way as this page http://pirkkoappelberg.net/ Do you know how? I also have another question. How do I make a decent gallery where people can comment my work? Can I modify i.e. Clearbox Lightbox widget so that it has commenting also? I myself don't want this, but my friend is interested. Thanks for your answers!
- 2 replies
- 3.9k views
-
Hi, I currently have a problem with my design. I'm trying to align my footer to the bottom of my pages. On the index page it works well, however on all other pages the footer aligns to about 3/4 down of the page and overlaps with the other content. Does anyone have any suggestions on how to fix this problem? I've also attached a screen shot. Thanks.
- 14 replies
- 1.6k views
-
I'm trying to get my head around how to have part of my top menu bar dropping down over the image below (see attached pic- I'm not too good at explaining!). I've made a background image with say 100px deep solid colour, then a 50 px deep section that I want to hang down over the picture below it. What's the best way of doing it?? It's doing my head in!! I figured I'd arrange my header all as one div, with the cutout image as a background, lay out menu links etc etc, use the cutout image with a z-index of 10, then the text that sits on it a z-index of 11, with css. How do I make the rest of the page start from 100px down? .floatheadimg {background-image: u…
-
- 12 replies
- 1.3k views
-
-
Hi there, I have just installed a drop down menu but I cant get the sub categories to work correctly. Could someone take a look and advise me what I am missing. It's a wordpress site www.antiquesilveronline.co.uk (under construction obv) The CSS is:- /*** Menu *****************************/ #menu{height:40px; margin-top:20px;} #navigation{height:40px;} #nav ul, #nav li, #nav span, #nav a { margin: 0; padding: 0; position: relative; } #nav { height: 40px; width:100%; } #nav:after, #nav ul:after { content: ''; display: block; clear: both; } #nav a { background: #ccc; background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAxCAIAAACUDV…
- 9 replies
- 1.4k views
-
I want to add a toggleFade to this hover (add class), but because of the transition to display:block it's effecting how everything lines up in the display:inline-block; http://jsfiddle.net/lecollective/MenG7/1/
-
- 1 reply
- 885 views
-
-
Hi, I am new to web designing/development. I have a base on HTML/CSS. Please let me know which tool to be used for designing/developing a new website.
-
- 7 replies
- 1k views
-
-
Hi guys. I want to round one corner of a DIV, I wrote this code: -moz-border-radius: 5px 0px 5px 5px; -webkit-border-radius: 5px 0px 5px 5px; border-radius: 5px 0px 5px 5px; but I saw different results in IE and chrome,firefox,opera. in IE the normal corner is on top left while in chrome,firefox,opera the normal corner is on top right! for illustration please look the following images. IE : Firefox, Chrome, Opera : thanks
- 5 replies
- 919 views
-
I've just started looking into cookie law. Personally I find it very annoying having to click 'yes' to give my consent to cookies to view a website, otherwise you can't view the site lol. I remember watching a video of the guy who invented responsive images or something like that. He said that it complied with new cookie law through two categories. I take it on page 14 'In other words, if the user visits a website, the website can identify that their browser is set up to allow cookies of types A, B and C but not of type D and as a result can be confident that in setting A, B and C they have the users consent to do so. They would not set cookie D.' is what it's tal…
-
- 4 replies
- 885 views
-