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
-
Please see the design. I want that when user click on "Vyrobce" on top this change design chage according to the design. To see the code please visit this link: http://jordanek.eu/aktual/index6.html Please help me to fix it. Thank you. N.B. I use boostrap collapse javascript function for this section: http://getbootstrap.com/javascript/#collapse
-
- 2 replies
- 1.8k views
-
-
#inner {background-image:url("");position:relative;} #inner::after {content:"";background-image:url("");opacity:0.8;background-repeat:repeat;position:relative;} The above code works, only because #inner has a background-image. If I make #inner have a background-color of orange the after pseudo-element after doesn't work ? How do I get ::after to work on a background image ?
-
- 4 replies
- 1.4k views
-
-
Has anyone tried styling the <select> element for WebKit browsers? It may be that you used a plugin or you have CSS code that easily did it. Here is the example code I tried (add your domain) select { -webkit-appearance:none; background:#2f2f2f url(YOUR DOMAIN/images/select_arrow.png) no-repeat center right; -webkit-box-sizing:border-box; box-sizing:border-box; border:1px solid silver; border-radius:10px; font-size:1em; outline:none; color:white; padding:0.2em; } This does it. I used this styling <select> HTML elements tutorial. Anyone done this a different way? Did a plugin prove easier?
- 1 reply
- 4k views
-
I am trying to create a search bar that slides in when a button is clicked. I am using translateX(-100%) to position it off screen. However when I do this it adds a horizontal scroll to the page allowing you to scroll right and see the hidden search bar. I have tried a combination of position absolute on the search-bar and overflow-x: hidden on the header div. See it action here: http://www.cqwebdesign.co.uk/saverplaces%202.0/TEST/index.html Please view it on small screen as its built for mobile screens. Thanks
-
- 1 reply
- 4.7k views
-
-
I am trying to create an off-canvas navigation menu. However I have ran into a couple of problems that I am struggling to fix. First problem is the height of the background when you scroll down the page the background colour does not continue. See the problem: http://www.cqwebdesign.co.uk/saverplaces%202.0/TEST/ (please only view on small window) Secound problem is the horizontal scrolling when the off-canvas navigation slides in. I can counter this with overflow: hidden on the inner-wrapper however this also prevents scrolling vertical which is a problem if I have a long navigation menu. Any idea how I fix these problems? Thanks
-
- 2 replies
- 1.8k views
-
-
Hello, hope someone can help. I have an iframe embeded in to the page: http://www.dcmotorcycles.co.uk/bikesforsale.html This is quite a long page, if you scroll down towards the bottom and click the like for more information, it takes you to another page within the iframe. The problem is, is that the new iframe window stays where it is and you need to scroll to the top of the window to see the information. This is a problem as users, do not know this and think the page is black. I understand that there is some code (like: window.parent.ScrollToTop(); // Scroll to top function) but not sure if this is correct and where it should go as I am not technical on the html side …
-
- 1 reply
- 1.5k views
-
-
How do developers here approach reducing page size using CSS or not using CSS? I have come across a number of tutorials and the border attribute seems the player. Like this one which looks at an alternative. There are a selection of shapes and how-tos when using CSS3.
-
- 1 reply
- 1.9k views
-
-
Wonder if you can help. I have created a page on our website that is hidden from the menus. The actual URL is http://creative.fwdp.co.uk/answers.html On printed marketing we want to display a more user friendly URL as www.fwdpcreative.co.uk/answers Im attempting to add this into the .htaccess file but I'm struggling as the website is using a sub-domain! These are my attempts which didn't work: Redirect /answers http://creative.fwdp.co.uk/answers.html Redirect www.fwdpcreative.co.uk/answers http://creative.fwdp.co.uk/answers.html Redirect 301 www.fwdpcreative.co.uk/answers http://creative.fwdp.co.uk/answers.html Do you know what i need to add to the .htac…
- 6 replies
- 1.7k views
-
Good evening, I need some help regarding a drop down html. I am a complete novice and have limited knowledge so please try to not use jargon when replying. Thank you! I have this link drop down but when viewed the box is rather small and weedy looking so is there anything I can add/change to this to make it bigger or change the font size? If not where could I find another like this as all my searches have resulted in blanks? TIA <!----- start drop down - links open in new window -----> <form method="post" action="" name=""> <select name="select15" onChange="window.open(this.options[this.selectedIndex].value,'_top')"> <option selected>…
-
- 1 reply
- 1.2k views
-
-
Hi I have been asked to take a HTML website and develop a Wordpress theme out of it. The website uses SmoothScroll so when a button in the footer is clicked, it scrolls nicely to the top of the page. Except now it is in Wordpress, I click the button and it just reloads the page at siteurl.com/#about The jquery in the .js include (as well as a smoothscroll.js include) was: $(function() { 'use strict'; $('.scroll').bind('click', function(event) { var $anchor = $(this); var headerH = $('#navigation').outerHeight(); $('html, body').stop().animate({ scrollTop : $($anchor.attr('href')).offset().top - heade…
-
- 2 replies
- 1.2k views
-
-
Hello. Have some problems here. Having just made this in java. The numbers range from 1- 10. But then I'll have those from 10-1. Someone who can explain to me how I do it? <html> <body> <script type="text/javascript"> var i=0 for (i=1;i<=10;i++) { if (i==3){continue} document.write( + i) document.write("<br />") } </script> </body> </html
- 1 reply
- 1.2k views
-
Hi all, Here is a link to a site that uses a 'calculator' for it's products. If a user selects a product (not the 1st one) an image is displayed below. I'm just wondering if anyone knows how they are displaying the images, I'd like to create something similar. Thanks, Al.
- 1 reply
- 1k views
-
Here's the problem I find with learning anything, is that unlike lessons in class, they wouldn't be structured in a way that you could learn exactly what you needed to know. I've picked up a few books on the subject and later I'm told that I shouldn't bother with what I'm learning, I was reading this book that went over all these different hacks you could use to style your page etc. But later I'm told that I should just use a grid system. Well, it's just slightly annoying because I'm going down one road to learn then I'm told that I don't need to know that, now I'm not sure exactly what direction I need to go in, I've got adobe master collection CS6 now, I have dreamwea…
- 1 reply
- 1k views
-
Hi im a bit confuse if this is right or wrong. <main role="main"> <section id="#something"> <article> Write the something here </article> OR Write the something here </section> </main> main -> section -> article -> output message or main -> section -> output message Im designing a one-page scroll only
- 3 replies
- 1.2k views
-
Hi all, Just wondering if anyone has come across this issue before. I work in Dreamweaver and have never seen this before. I was adding some Media Queries and couldn't figure out why some were not working. After searching online I found a post of someone saying that there was some odd code added to their CSS. I looked in the page source and sure enough there was some odd code. The answer provided by the original poster was to copy the code into Word and copy it back to Dreamweaver. I had done this and it worked - the odd code was gone. Attached is a screenshot of page source with the odd code highlighted.
- 15 replies
- 1.9k views
-
I'm changing a site from <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> to <!DOCTYPE html> I understand that I must remove the name tag from an anchor so that it validates properly through W3C Validator, but in doing so it the anchor ceases to work. Following guidelines I changed my code from <a name="topofpage id="topofpage"></a> <div class="pagetop"><a href="#topofpage">PAGE TOP <sup>▲</sup></a></div> to <h1 id="topofpage"></h1> <div class="pagetop"><a href="#topofpage">PAGE TOP <sup>▲</su…
- 28 replies
- 2.9k views
-
Hello. I am usually pretty good with website design, but I have run into an problem. If you can visit my website at http://www.daniel-chaplin.co.uk and click on any of the tabs except education, you'll see that the tab you click on goes to the correct page, but when you click education I seem to get a "Contact" titled page but it does display the correct page I want, but just don't update the title which is in the top left hand box. If you look through each page on the top left your see the problem on the education tab. I hope that I have made it clear, please explain your answer if possible so I can fix this in future, sharing is caring Thanks in advance t…
-
- 7 replies
- 4.6k views
-
-
hello, I've been trying to get this video player to work, underneath the player i want image thumbnails which when clicked will load the multiple files in to video player then play (These will be square images need to be a/img tags) I have managed to get the files to change over when the button is clicked but the player won't load. can any one help me out? its the mediaelement.js video player. HTML is <video width="100%" height="100%" controls="controls" preload="none"> <!-- MP4 for Safari, IE9, iPhone, iPad, Android, and Windows Phone 7 --> <source type="video/mp4" id="mp4" src="#" /> <!-- WebM/VP8 for Firefox4, Opera, and Chrome…
-
- 0 replies
- 3.6k views
-
-
Hi I read that you just add ErrorDocument 404 /index.php to the .htaccess file in the same folder as the other pages, to change the 404 page to direct to the home page. It doesn't work any ideas? Thanks in advance.
- 11 replies
- 1.6k views
-
In a recent blog post Harry Roberts, renowned css architect held a talk at the Trondheim developer conference talking about css specificty and how to organise your css. He writes about it here in this blog post: http://csswizardry.com/2014/10/the-specificity-graph/ He says a good way to get an overall view of the specifcity ocross your site is to take the specificity values for all your css selectors (in order) and use them to plot a graph, this quite clearly would be very time consuming and no automated tool existed. So I thought I'd have a go at building one. Took me most of the weekend to get it working, and I'm gradually removing any bugs that I come across.…
-
- 24 replies
- 2.7k views
-
-
Please see the design of this menu: http://jordanek.eu/aktual/index6.html where I made a menu (left side) which has some functionality such as when click on white bar “Vyrobce”, then a yellow bar “Vyrobce” would be appeared and white bar “Vyrobce” would be disappeared. And when click on closing link “x” on yellow bar “Vyrobce” it would be disappeared with all elements and white bar “Vyrobce” would be appeared again. The problem is when I click anywhere on yellow bar “Vyrobce” except closing link “x”, the white bar “Vyrobce” appear again and show the both menu at a time. But I want to show only one bar at a time. How could I do it? Can anybody help me to fix it? T…
-
- 2 replies
- 1.9k views
-
-
Hey all, I just need help with creating my eBook , I need someone to help me and teamveiwer with me to guide me with Dreamweaver because I need help this is for my I C T - and it will be assessed , and I need to expertise to help plz !!
- 13 replies
- 1.8k views
-
Through the guidance of a tutorial I have been able to add a 'hint' pop-up to a field within a contact form I put together using CSS. However, I'd like to know how to add an 'error' pop-up for each field similar to how the BBC has when you attempt to register an online account with them [https://ssl.bbc.co.uk/id/register]. The CSS I used to create the 'hint': .form_hint::before { content: "\25C0"; /* left point triangle in escaped unicode */ color:#575974; position: absolute; top:1px; left:-6px; } .contact_form input:focus + .form_hint {display: inline;} .contact_form input:required:valid + .form_hint {background: #28921f;} /* change form hi…
- 8 replies
- 3.1k views
-
I want to make a url show a list of the subdirectories in that domains folder and of cuorse with out the option to go back behind that folder so people can't mass with my files... I will try to be more clear: I have, lets say this domain: tests.domain.com and in that domain i have a lot of folders of websites i'm working on: tests.domain.com/TestWebsite1/ tests.domain.com/TestWebsite2/ tests.domain.com/TestWebsite3/ tests.domain.com/TestWebsite4/ And so on... So i want that when i'm going to 'tests.domain.com' it will show me those sub-folders so when i click on them it will take me to this test website... Any idea how to do that? Thanks…
-
- 12 replies
- 3.8k views
-
-
I am working on a small basic quick to load Web page designed to be used for reference (contact numbers, email addresses, etc). I would like to add two functions; Add button Edit button Right now, I am focusing on the edit button but if you're feeling generous please advise for both. Regarding the edit button I want there to be an edit button at the end of the cell I am changing, when clicking it it will display a text box for me to input the text I wish to replace with. It will then modify the source file with this new value, replacing what was previously there. The edit button edits the adjacent cell. So where Example displays 0110 000000 > I then edit…
-
- 1 reply
- 1.9k views
-
-
I realise this sounds like a very basic question and if it is actually showing up properly for people (which right now seems like pot luck) with its controls then you may not be able to troubleshoot it. I'm doing a blog post about the HTML5 Video element at the moment debugging issues such as these. http://www.jonniegrieve.co.uk/lab/video/video.html Here's my code. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HTML Video and Audio</title> <link rel="stylesheet" href="css/normalize.css"> …
-
- 5 replies
- 1.6k views
-
-
I'm working on a clients website and i have designed the navigation like this Each navigation text link needs to fill the width of the li giving the effect above, i have no idea how to achieve this, i've tried fill text/ bigtext etc but can't seem to get them to work like this. Does anyone have any ideas or code that could help me out? My code for the navigation is below, It will run on wordpress so i don't really want to add classes to the li/a tags. <div class="nav"> <ul> <li><a href="#">HOME</a></li> <li><a href="#">MOVIES</a></li> <li><a href="#">PROJECTS</a>&…
-
- 5 replies
- 1.7k views
-
-
Hi there! I was playing around with media queries in dreamweaver cs6. I was trying to make kind of more mobile-devices-friendly version of my site using media queries. I made a new css file that should be applied whenever the browser finds out that the visitor's browser window is less than 700px wide. i put <link href="style/tablet.css" rel="stylesheet" type="text/css" media="only screen and (max-width:700px)" /> in each of HTMLs. It works for me on my dektop - within dreamweaver, chrome, safari. But it doesn't work on my iPhone - it applies the new css sheet only for the index.html page, but not for the others. Anyone know what could cause tha…
-
- 3 replies
- 1.2k views
-
-
Hi I am newbie having issues with a javascript... Background: I am designing an HTML greeter/login screen for MDM display manager on linux mint. Problem: I am using a script to load a random image as the background for the login screen. The script does this perfectly well, however the image is displayed in its native resolution (massive) and is not scaling to fit the screen. My question is this; how do I format/style the images that are loaded by the script? Do I use CSS and if so, how? This is my script (which is stored as an external .js file and loaded with a <script> tag in the main HTML file) function changeImg(imgNumber) { var myImag…
-
- 1 reply
- 1.2k views
-
-
How would make the right and left ends of my nav http://gyazo.com/1c8214337de2d7ef0fb8eed6c0379f89 slant like this http://gyazo.com/521c28682d7a6618a01981f6fe4054d3 without doing anything is ps6
- 4 replies
- 1.3k views
-
Hello, I have created a order summary page and font look good in Firefox (Easy to Read) but on google chrome fonts look ugly and hard to read. I tried to use Arial, etc fonts but my problem is not solved ;/ font-family: Arial, Helvetica, sans-serif; Thank you.
- 7 replies
- 1.7k views
-
Hello all, I'm a PHP Developer who is learning CSS3 so I'm a bit of a newbie to client side development. I'm attempting to design a piece of code that responds to a viewport's dimensions changing size, i.e. laptop, tablet and phone size screens using CSS3. The code works fine, however, the image doesn't work correctly. here's the code: <div id="wrapper"> <div id="header"> <div id="logo"> </div> <div id="nav-wrapper"> </div> </div> </div>
-
- 6 replies
- 3.3k views
-
-
Hi, I have a CSS issue. I think it is to do with overflow but am not sure. As you can see: When the browser is made smaller (width) the div gose to the bottom and pushes the other div out of the way. I want to stop it doing this?
-
- 8 replies
- 2k views
-
-
Hello, I'm trying to embed a fluid video that would auto-fit the screen, I tried a lot of tricks but to no avail. Please help me! http://www.socialbunny.co/stadio Thank you!
- 4 replies
- 1.8k views
-
Hello friends, I have a greeting card website am working on and i need my customization page to be like this http://www.funkypigeon.com/Pages/CustomiseCards.aspx?ProductId=122130 Also to be able to create DIV with a click of a button. Specify the width & height, margin-top & margin-left tec. Pls which software/script/plugin do I need. or what is your recommendations. Thanks
-
- 2 replies
- 1.5k views
-
-
Hello I am trying to use this plugin https://github.com/kylefox/jquery-modal (never used one before) so that when I click the events button on my page http://www.jameswinfield.co.uk/Emma.html - the event flyer will come up in a modal box. It isn't working. I am sure I have done lots of stupid things as really struggling to get my head around jquery. Can anyone advise? Thanks James
- 11 replies
- 1.7k views
-
Good evening! I was seaching for a long time and finally i wrote the function that working well. But one problem.. I can't kill it on click.)) I set lots of variants but in every case when i click on "stop" button function still working. Can you point me on mistake. Maybe i set setInterval incorrect? Thank you. DEMO <button>Stop</button> <div> <div class="pics"> <p>1</p> </div> <div class="pics"> <p>2</p> </div> <div class="pics"> <p>3</p> </div> <div class="pics"> <p>4</p> …
- 7 replies
- 1.8k views
-
I am looking for a slider. Can anybody help me? This is the design of the slider:
-
- 6 replies
- 1.7k views
-
-
Complete novice and self teaching so forgive me if this question is beyond the pro users. looking at modern websites like http://www.facebook.co.uk the background colour seems to fill the whole page and have multiple colours. How do developers achieve this?? I have tried but the only way I see to do it is by having a background colour and the using a div element, but the div dose not fill the space between the top of the page there is always a about 10px space. On Facebook the blue strip at the top of the page with no spacing and the rest of the colours blend and have a gradient. Again how is this achieved?. Thanks
-
- 5 replies
- 1.2k views
-
-
So I bought a website from theme forest and Im having trouble with a lot of different parts of the coding. On this template there are three sub categories on the home button on the left, they branch out into three home layouts. How do I just have it as the first home layout? Heres the template I bought : http://themeforest.net/item/synergy-responsive-interactive-html-portfolio/full_screen_preview/3054099 I cant find anywhere on the html to get rid of the other options.
-
- 2 replies
- 1.2k views
-
-
Hi, I have nearly completed a website build, using WordPress as the CMS. Linky If you visit one of the other pages, you will notice a 'jerk' where the HTML is drawn into the browser, and a slight delay of loading the image. This causes the header area to adjust it's height because of the newly added image. If this were a fixed width site, then I could add a height to the #hero or #hero img CSS to fix this issue. But, being responsive, is there a simple solution to overcome this 'jerkiness' ? Any tips and advice would be most grateful. *In the meantime, I am going to concatenate my JS to see if I can help with page loading speed. CSS already done. T…
- 17 replies
- 2.7k views
-
This is the code I have for my <div> tags. The left <div> is called #text, and the right <div> is called #images: #text { float: left; width: 800px; height: auto; background-color: #FFF; padding-top: 5px; } #images { float: right; width: 200px; height: auto; background-color: #FFF; } I want to keep the height of both <div> tags as auto (if it's possible). But I want to make the "#images" div tag expand and be the same height as the "#text" div tag. How do I do it? Thank you for any help.
- 9 replies
- 8.1k views
-
So i'm trying to create a site and i've tested my code on scratchpad and works how I thought it should, however when I view it in either firefox or chrome I still get a white border above my header, see below for details HTML Code: http://pastebin.com/DAjfVrQs CSS Code: http://pastebin.com/1q2dJFEi I don't understand why its working in scratchpad but not in normal browsers, please someone help.
-
- 7 replies
- 1.7k views
-
-
Hi, I'm trying to display webpages from several sources on my website. I'd like them to be displayed in ~mobile-sized-ish iframes, so I'm looking for a way to automatically direct to mobile version inside the iframe (if existent). End result: user provides URLs to surf websites on their mobile version even though he is on web. Any ideas?
-
- 3 replies
- 5.4k views
-
-
Hi, I've received an enquiry from a custom to track the clicks on a few links on their website using Google Analytics. They basically want to know when that click has been pressed and also by who so that they can track what kind of users are clicking those links etc. I've done a Google on this and run in to Event Tracking which all seems very straight forward, just a case of setting the link up as <a href="#" onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);">Play</a>. It seems like this shouldn't cause a real problem but I'm unclear as to how much data they can get from this? Can do match the clicks up to users and a…
- 4 replies
- 1.7k views
-
Hello I wanted to do a lightbox for the website I am creating for my friend to display the event flyers, by clicking the events button at the top. http://www.jameswinfield.co.uk/Emma.html However most lightbox plugins seem to require all the links or images to be listed on the page. Is there a way around this? I hope I have explained this clearly. I am a total beginner on jquery so maybe I am trying to do something impossible. Thanks James
-
- 1 reply
- 1.1k views
-
-
I want that anybody could drag point (circle) and move it to sides. If anybody know such type of jQurey plugin, please share. Thank you.
-
- 2 replies
- 1.6k views
-
-
I have a link button that I want to have change colour in hover and active mouse states. However, the link is set inside a <div> tag which changes shape reactively when the window is resized, but only the <a> tag responds to the hover and active states. Can anyone explain how I can make my whole button change with the mouse state and not just the <a> element? Alternatively, how can I code for the <a> tag so that it forms a tidy button with corner radius that changes shape reactively when the window is resized? Thanks in advance. These are the lines of CSS code I'm using. div.button { text-align: center; margin-top:25px; margin-bottom: 30px; padd…
-
- 1 reply
- 1.6k views
-
-
Managed to get the Nivoslider to go to the desired width I want with a media query of min-width: 480px. I then want my page content to flow next to it as it looks riddiculous atm with the image taking the whole page. It seems that the .ribbon is not shrinkwrapping to the main # slider itself, I've tried with: auto too. Has anyone managed to wrap the page content around a nivoslider? Page is live at http://concretepokerrepair.co.uk/index.php HTML: <div class="slider-wrapper theme-default"> <div class="ribbon"> <div id="slider" class="nivoSlider"> <img src="/images/main_slide/spiral_concrete_staircase.jpg" alt=""…
-
- 0 replies
- 1.3k views
-
-
Hello, I am having a hell of a time with my website and open search graph. I have supplied you with the code I use for it. It is working fine on my mobile, but not my Laptop, other people have told me they can see it on mobile buy not on a desktop. I have also included a screenshot from my phone, showing it works on mobile. The image is located in my images folder on the server. <meta property="og:title" content="Aspiration" /> <meta property="og:type" content="website" /> <meta property="og:url" content="http://www.aspirationscotland.co.uk/" /> <meta property="og:image" content="http://www.aspirationscotland.co.uk/images/open_graph.jpg" /&g…
-
- 0 replies
- 1.9k views
-