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 what does this mean? <link rel="stylesheet" href="css/style.css?c=124" type="text/css" /> Hi, I am trying to migrate a site to WordPress. The person has given me a load of style sheets, the problem is the index.html file only specifies the one above. Im confused?
- 3 replies
- 1.2k views
-
http://jsfiddle.net/7RG4s/ I thought I had a handle on how to snuff these out but I've got a fiddle here with a CSS layout. There's a gap between the content-two and content-three backgrounds. It appears in Chrome but not in Firefox. Short of setting a background for the body element with a matching background colour what can I do to get rid of this please? I've set my padding and margins to zero but I've run out of ideas. Thanks
- 3 replies
- 1.3k views
-
I know there are a lot of 100% width posts but I can't seem to get an answer to my problem. The site i'm working on is located here: http://edgar.ldn.kualo.net/~lmpmeuk/web/busybees/ I want the navigation bar and footer bar at the bottom to span the whole width. As you will notice there is a slight spacing left and right of each to those bars. <header> <div class="container clearfix"> <a href="/" title="Click here to go home" id="logo"> <img src="img/logo-main.png" alt="logo"> </a> </div> <nav> <ul…
- 1 reply
- 1.2k views
-
I really didn't want to post a link to the site I'm building until it's more complete but I'm stuck on a problem. I'm using HTML5/CSS3 and I'm having problems getting the Menu and the Image centered (I haven't looked into the menu much, been mainly focused on the Image. Here is the Div class: #hero-image { display: block; width: 80%; max-width: 100% } The container surrounding the div mentioned above is: .container { width: 940px; padding: 0 10px; margin: 0 auto; } If I lower the percentage of the image width then it seems to go centered but I can't seem to figure out why I can't have the image bigger and centered. I thought It must be the paddi…
-
- 6 replies
- 972 views
-
-
Hi everyone, I have a website that has a pull out menu when you hover over a topic. It's controlled through css, no java involved. It worked the first time I uploaded to the site and still works locally on my own computer after I've updated the content. But it doesn't work on IE after I uploaded it. It works perfectly in Chrome and other browsers though. I've checked meticulously for the following problems: - directory name - upper and lower case issues - file access issues And it all seems like it's working. The funny thing is that it actually seems like it's reading the css but just in a really weird way. You can see what I mean here: http://fl-archite…
-
- 5 replies
- 1k views
-
-
Please I am looking for a website or blog that offers CSS and CSS3 tutorial in such a way that the tutorial are thought with an example of building a complete web page. Thanks
-
- 2 replies
- 912 views
-
-
Building a site using Bootstrap. Having an issue with the van. I want it to collapse at 991px. Searched online and found this code, however it has changed the function of the nav as the nav wont stay open. Any ideas? The code used to override default is in my custom.css http://nurdit.com/styleengineered/ @media (max-width: 991px) { .navbar-header { float: none; } .navbar-toggle { display: block; } .navbar-collapse { border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); } .navbar-collapse.collapse { display: none!important; } .navbar-nav { float: none…
-
- 0 replies
- 1.1k views
-
-
I'm making progress, one issue I've got across though that is bugging is the navigation bar not resting on top of the main div, you can notice it if you look closely. Here is the problem: http://snag.gy/PTe2F.jpg Here's my html code: <!DOCTYPE html> <html> <head> <title>This is the title!</title> <meta name="description" content="This is the description!"> <meta name="keywords" content="these, are, keywords"> <meta charset="UTF-8"> <link href="styles/stylesheet.css" type="text/css" rel="stylesheet"> <!--[if lt IE 9]><script src="scripts/html5shiv-printshiv.js"></script…
-
- 0 replies
- 1.1k views
-
-
Hi everybody; here is a link that has gradient background in the body tag,but in IE11 it doesnt appear; so i'll be thankfull if anybody could help me in this case to make it display correctly. http://aysanhefaz.somee.com Thanks.
-
- 1 reply
- 878 views
-
-
Im trying to build up my resources to use on sites that I will design in future. I am building a site now and I have tried a few responsive sliders but a lot of them are either not free or are bloated. I have tried a few but seem to have trouble with the integrating them - although some are very feature-rich. I just want a very simple image slider/carousel that auto-scrolls and also has the option to manually scroll. Can you recommend any?
- 12 replies
- 1.8k views
-
Hi, Firstly if this in the wrong category I apologise. Anyway I have been looking at some website templates, now I must admit I have been out of the website game for a few years but one of the templates I was intesterested in spoke of Bootstrap. On trying to find the offical site I must admit it just confused the hell out of me. So my questions are, what is Bootstrap? Is it something that needs to be installed on a server? The template I saw looked great but I noticed some extra's I may need, twitter feed being one and a couple of other bits, also a couple of bits taken away, how easy is it to remove or add things with Bootstrap? I mean is it contained in its…
- 4 replies
- 1k views
-
If someone could have a look at this and try and make it work then show me the code and explain it then that would be much apperciated, thanks. If you guys are gonna do this in CodePen this is the CSS just so you can see it properly. .form-control { font-size: 14px; font-weight: normal; line-height: 1; color: #555; background-color: #eee; border: 1px solid #ccc; border-radius: 4px; padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; } .form-inline { width: 100%; } .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; padd…
-
- 2 replies
- 881 views
-
-
Okay so I've disabled zoom and am using percentages for all the design and EM for fonts. Look at the difference between the first and second picture. Info: The grey is the html background color, blue is header (the navigation bar (pink) is also in header), green is the main divider where all my html files will be opened, yellow is the footer. I tried media queries and box-sizing:border-box. Neither worked. http://snag.gy/FE5w4.jpg http://snag.gy/Nivja.jpg
- 3 replies
- 922 views
-
hi, I am trying to customise a wordpress theme, but have hit a brick wall trying to figure out how to disable the hover effect on the menu bar items (imenu item fades to white and disappears against white background). I think I've located the relevant .js file (see attached) but am absolutely stumped as to what I need to do to disable the hover/rollover effect. url is: www.italian-cook.co.uk Many thanks in advance Mark
-
- 1 reply
- 880 views
-
-
Hi guys, I want to make a FAQ-style list where after clicking on one of the links in the list, there is a collapsed div below each link (that includes content based on the list item) which will expand. Is the text in the hidden divs visible to search engines? I know how to show/hide divs but just wondering if this is seo friendly. Thanks
-
- 4 replies
- 4.6k views
-
-
http://screencast-o-matic.com/watch/c2euFin04P As you can see on the video when i click the x button it does not close the window but that's what i wanna do. How can i make it onclick to close the window?
- 3 replies
- 902 views
-
I've heard about awesome css but i actually never try it out so i was wondering how i could create an icon like that:)
- 7 replies
- 1k views
-
Hello all! I've been trying to design a website for a couple of weeks now and it's been really stressful wanting to learn everything about html/5 and css/3 (I've just started learning), and I'm being pretty impatient. What I've done is built a basic HTML5 structure with a navigation inside a header, you lose sight of the header/nav as you scroll down. What I would like which I've failed at is an interface compatible with all browsers and devices, a design that adjusts to the users browser size not matter what browser/device. Which also allows zooming in on smaller devices like tablets/iPhones etc. Every aspect of the site needs to be fixed in place (at the moment my na…
- 10 replies
- 1.8k views
-
Hi there, I have developed a website for a client which you can visit at http://curiousbookco.com/. The developer I am using has proven unreliable and I just want want this client's website signed off as it is dragging on. Basically, in the primary navigation, the client wants to make sure that the the menu items on the left and right of the logo maintain equal spacing from the logo as the window's width is reduced. As the menu items on the left are collectively narrower than those on the right due to the amount of characters this is proving difficult, apparently. If anyone can suggested a solution which will work across browsers (IE9+) and devices that would …
-
- 2 replies
- 1.3k views
-
-
This is my jquery: $(document).ready(function () { $('#fname').change(function () { x = $(this).val(); if (x == null || x == "") { y = document.write("eroor") } }); }) the above is in my head section of the html and I want to display y in an element in my html body. tnx
- 3 replies
- 1.1k views
-
http://dsfetish.blogspot.com i have blog in blogger, and my google friend connect button in the right isn't working and every time when you press it a window show up with the text: "We're sorry... We were unable to handle your request. Please try again or return a bit later.". but when i press the blue squares next to it it works and i checked it with another user of mine and it realy works just fine and i got updates from my blog. so my problem has two kind of solutions but i need someone who know something about HTML and javascript. 1.to make my google connect button to work like the blue squares next to it 2.to make the blue squares to look like a button or…
-
- 0 replies
- 875 views
-
-
I have learnt HTML5 and CSS3 and I now want to take things further to higher my chances of getting a job. What would you say is essential to learn out if the below and in your opinion which order would you do them in? XHTML, PHP, JavaScript, AJAX, Jquery or other? What is best to for what function? Or would you say learn responsive web development next before any of the above? After than then which?
- 9 replies
- 1.8k views
-
I have this code which loads 10 divs from an external file into the main file. There's also a next / previous function to skip back and fourth between the divs. Demo: http://goo.gl/RFBN2E What's the best way to load a text string along side the external divs into a different part of the main file? How it works at the moment <!-- External File Divs --> <div id="div1"> <h1>DIV 1</h1> </div> <!--Main File --> <div id="projects"> <!-- The above div1 will be loaded here --> </div> I need to add <!-- External File Divs --> <div id="div1"> <h1>DIV 1</h1> <p …
-
- 0 replies
- 859 views
-
-
I've nothing but problems with this. The words "gallery" I want to rotate in 3D and reveal the words "art/art2", using the vendor prefix rotateX(). I applied a background color to make things visually easier. If anyone has experience with CSS3 advanced features, I would greatly appreciate your time and help. [Link] (Vendor Prefixes are only applied for Chrome at this time, if you view in FireFox or another browser you won't see the effect)
- 6 replies
- 888 views
-
Hi, After a bit of help i've got a vertical navigation sorted and i've got it working with a toggle show/hide feature. What i'm trying to do next is add a drop-down menu to it, so when the user clicks on a link the links below move down to display a sub navigation of a few links. Below is a link to the website test page. Any help would be appreciated. http://www.markclaxton.co.uk/test/
-
- 3 replies
- 1.2k views
-
-
Hey guys i wanted to learn any easy language which I can use to make a simple website or use it on my blog. Like html and Css any else because I don't know any of these but language must cover basics of web developments. I only wanted to show my text, like drop down menu's , header's and social plugins and other common widgets on my blog. I'm totally new don't know any of this. Please suggest me any book or tutorials(video) that I watch or read and know the basics. (Sorry for Bad English ) Thanks in Advance..
- 10 replies
- 3.1k views
-
<!-- Contact form with html code ================================================== --> <div class="row"> <form id="form" name="form" method="post" action="mail/contact.php"> <div class="span4"> <label>First name</label> <input type="text" class="span4 req-string" placeholder="Type something…" name="fname" id="fname"> <label>Last name</label> <input type="text" class="span4 req-string" placeholder="Type something…" name="lname" id="lname"> </div> <div class="span4"> <label>Your email</label> <input type="text" class="span4 req-email" placeholder="Type something…" name="email" id="email…
-
- 0 replies
- 1.1k views
-
-
Hi all. New to the site, but have been coding on and off for around 10 years. Im currently using bootstrap to create a wordpress theme with php and was wondering, how can I make it more 'me' and take away that 'bootstrap' feel. Wuld I have to theme bootstrap from the ground up? or maybe I just need to bring in some psd work? Website Link: http://www.deanhollstrom.me Any feedback/constructive criticism welcome, and thank you in advance
- 5 replies
- 966 views
-
Hey, having a strange issue with some javascript and can't seem to figure it out. See the demo here http://goo.gl/9TvmL1 If you click one of the links at the bottom of the page (e.g LINK1) it's told to load the corrosponding div from a seperate file. Link1 loads Div1, Link2 loads Div2 etc... I've added a next / previous function to it which is meant to load the next and previous div in the external file (e.g if you click next on DIv1 it will load Div2 without having to click the Link2), but for some reason it will only count next once, and the previous function just closes the content. Here's the souce (but it is linked in the demo anyway) Javascript // …
-
- 2 replies
- 860 views
-
-
Hi, Just a question, say I were to make a website where people can buy or upload their item/s to sell..etc. What should be the concept to make that happen? Would I use JavaScript, JQuery or PHP? Example: <ul> <li><a href="sell.html"></a></li> </ul> <html> <title>sell.html</title> </html> How do I make the dynamic structure to interact with buying and selling? Sorry if this question sounds dumb but I am still in the early process of understandings Thanks
- 3 replies
- 885 views
-
Hello, I am not a complete newbie but also I'm not a pro, I want to do my own website and I have an example of what I would like to do... but I dont really know the basic on how to do it.... Here is the website... http://neverbland.com/ How they do the slide effect? It's jquery? well... I just want to know some basic about how to do a slide and make exactly in the size of the screen.... just the basic to make some research.....
-
- 5 replies
- 898 views
-
-
The idea is simple. A key you press (a letter) appears in updated page: keyj.php: <input id='k'></input> <script type="text/javascript"> document.getElementById('k').onkeypress=function() { <?php $db=new PDO('mysql:host=localhost;dbname=test;charset=utf8','$us','$ps'); $db->exec("UPDATE TXT SET texts=k.value"); $rl=$db->query("SELECT texts FROM TXT"); print_r($rl->fetchColumn()); ?> } </script> The intention is to have text on the screen via print_r. I successfully used it in another php to exchange information with MySQL and users screen (worked). Here - the more you type and the more k.value is the more text will be on…
-
- 0 replies
- 1k views
-
-
Hi, I have been given a PSD file which needs to be converted into dreamweaver. After this bit has been sorted, I have been assigned a task to add javascript to the page. How does this would? Can people give me examples of how I would add javascript to make a page more dynamic? I can provide more information if necessary, sorry if I seem a bit vague, just in a rush! Thanks, TheJCD
-
- 6 replies
- 895 views
-
-
Hi all, I'm having a bit of difficulty getting my jquery scrollbar plugin to recognise my dynamically created content. I've tested it with dynamic and static content. It works fine when I insert rows of content within the 'div' tags, but when the dynamic code is inserted, the 'div' recognises the code but the scrollbar doesn't show. I've clicked on the 'view page source' and the dynamic code doesn't show, (although it is displayed in the browser), therfeore it must be the fact that the scrollbar plugin thinks there is no content within the divs. I've googled all sorts of permutations of 'how to make dynamic content code show within the dav tag, page source..…
-
- 2 replies
- 4.2k views
-
-
I am redesigning a website of mine and trying to introduce a drop-down menu on the features tab. http://www.ubereadoolische.com/home.html I have never done one before, and the book I read it in suggests to me to use a JS plug-in called Superfish which I have done - my knowledge of JavaScript is almost zero. Can anyone point me in the right direction please, I am getting a bit frustrated!! Maybe there is an easier way without using JS? Or probably I am doing something dumb. Thanks James
- 4 replies
- 908 views
-
Hi guys! I want to know what is the best way to give my header and footer a 100% width just so I can fit a background image (repeat-x) for both. I have an idea of how to do it but I want to confirm with you boffins if this method is ok to go ahead with... I am also having problems viewing the outcome on dreamweaver design view. Everything is shifted to the left. Am I doing something wrong or is dreamweaver a bit dodgy in that department? Please guys, any help would be nice. Fixed layouts is all I've done in the past and now I'm experimenting with different styles. eg. HTML: <html> <head> <title>100% Header and Footer</title> </h…
- 6 replies
- 4.6k views
-
Hi all I'm developing a responsive site using Twitter Bootstrap, here is a summary of my coding: <head> <title></title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content="" /> <meta name="author" content=""> <meta name="keywords" content="" /> <!-- Optimized mobile viewport --> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"/> <meta name="apple-mobile-web-app-capable" content="yes" /> <link rel="shortcut icon" href="images/favicon.ico"> <link rel="apple-touch-icon" href="images/apple-touch-ic…
-
- 1 reply
- 1.3k views
-
-
Hi guys, I wanted to make my theme like this website=-= http://www.whatmobile.com.pk which software should i use i'm new in this. Or I need to learn a language for it I'm new I don't know how it works (Sorry for bad english) Thanks in advance.
-
- 0 replies
- 2.2k views
-
-
I have this script which loads content from another page. $(".load").click(function () { $("#projects").html(""); $("#loading").show(); $("#projects").load("projects.html #"+$(this).data('id'), function () { $("#loading").hide() }) }) Once the content has been viewed, I'm wanting to have a link which closes the content. I've tried the following: $(".exit").click(function () { $("#projects").hide(); }) Which works, but once it's clicked the content can't be viewed a second time. I tried trying to end the script with a return but can't seem to get it working.
-
- 4 replies
- 886 views
-
-
Heres the code first var options = { pageUrl: function(type, page, current){ return "portuguesegoods.com/theaquaponicist/gallery/index.php?type=blog&page="+page; } } What i need is for the is to get the url dynamically on each page where the code would be place But i only need portuguesegoods.com/theaquaponicist/gallery/index.php?type=blog; and not portuguesegoods.com/theaquaponicist/gallery/index.php?type=blog&page="+page; notes** The landing page or the page one will not have $_get variable so there will be no "+page on it but othe…
- 5 replies
- 1.2k views
-
Good evening, I am hoping someone can help me. I am trying to fix an iphone display issue on a website Basically the first home section - the find out more button overlaps the content box below. I am unable to replicate this problem and I don't own an iPhone so struggling to fix. Can anyone help me out? :-)
- 1 reply
- 881 views
-
Hello, I currently have an input field which I am using as a search field. I have incorporated JQuery Ajax so that when you start typing in the input field it uses what has been typed and creates an <ul> of all the names which contain the input letters (In the same order they have been typed). The <ul>, which appears, hovers over my other divs and only appears when there is text in the input field. So, for example, if you type something in the input field, and then delete them all, the <ul> would disappear. When selecting one of the names from the list, I use this to trigger another event which loads relevant fields in the page, with the cor…
- 7 replies
- 11.5k views
-
I was reading on the W3 site about Nodes and came across this script <div id="div1"> <p id="p1">This is a paragraph.</p> <p id="p2">This is another paragraph.</p> </div> <script> var para=document.createElement("p"); var node=document.createTextNode("This is new."); para.appendChild(node); var element=document.getElementById("div1"); element.appendChild(para); </script> The structure above is classic inheritance insertion. My problem is, what purpose does this structure have in the web industry? What kind of problem would this structure solve?
- 3 replies
- 1.1k views
-
I'm using ajax to load 10 divs into my main page, just wondering if there's a way of combining them into one peice of javascript instead of having 10 different functions? Here's the first two for an example. HTML: <a id="load1" href="#"> <img> </a> <a id="load2" href="#"> <img> </a> Javascript: $("#load1").click(function () { $("#projects").html(""); $("#loading").show(); $("#projects").load("projects.html #1", function () { $("#loading").hide() }) }) $("#load2").click(function () { $("#projects").html(""); $("#loading").show(); $("#projects").load("projects.html #2", function () { …
- 2 replies
- 1.6k views
-
Hello, My query seems to be quite a simple one. The solution, however, I am finding great difficulty to find/understand. This is what I currently have; <select class="choice" id="fijournal" name="fijournal" required="required"> <option value="" disabled selected>Select journal...</option> <?php $clientid = $_SESSION['clientid']; require_once('connection.php'); $query = "SELECT ClientID, JournalID, Title FROM tbl_jv_journals WHERE ClientID = $clientid ORDER BY Title"; $result = mysql_query($query); …
- 4 replies
- 2.3k views
-
Can anyone recommend any good secure contact forms? I'm looking for something so when it is gets sent it to the inbox, it displayed clearly with subject and reply to, along with message. Also want the other parts saying thank you for sending this message and please fill in the required boxes etc.
-
- 5 replies
- 891 views
-
-
Hey everyone, I'm having way too much trouble getting a single answer validation check to work for some check boxes on a client project. I'm using jQuery validator: http://formvalidator.net/#default-validators The radio buttons validate whether you press a button or not! I made a test to make sure that the code worked and it did, so I implemented it into the main project file and it validates regardless of whether or not it's received any feedback. I can't for the life of me work out why because the code is the same: Here's the jsfiddle: http://jsfiddle.net/3vwWL/1/ I've marked the HTML location where the problem html is, the JS runs the validation.
-
- 2 replies
- 5.9k views
-
-
I'm trying to get some CSS3 features to work on my site. I want the span=gallery to rotate and flip to reveal the word class=back. <nav id="top"> <ul> <li><span class="gallery"><a href="">gallery</a></span><div class="back"><a class=link_a>Art</a><a class=link_b>Art2</a></div></li> .gallery {font-size:3em;-webkit-transform:rotateX(-180deg);-webkit-transition: all .4s ease-in-out;-webkit-transform-style:preserve-3d;} /*.gallery .back {-webkit-transform-style: preserve-3d;-webkit-perspective: 600px;-webkit-transition: all .4s ease-in-out;}*/ .back {font-size:3em;co…
-
- 1 reply
- 959 views
-
-
When you have a form you can style the input tag. If the input tag as an idea ID the ID has more "weight" or specificity then input, correct ? No ID <input type="text" name="fname"> With ID <input type="text" name="fname" id="newname">
- 15 replies
- 1.5k views
-
Hello! I have finally learned jquery and now i need to make slider for new site, but there is a little problem) I found this code on codepen I want to make slider autoplay from right to left, but on hover i would like it to move from left to right. I couldn't understant how to make autoplay. So.. i make two functions on hover, using shortcode, but last one doesn't play all slider. I will very greatfull if someone can point me to the right direction. Thank you! live example <h1>Incredibly Basic Slider</h1> <div id="slider"> <ul> <li>SLIDE 1</li> <li style="background: #aaa;">SLIDE 2</li> <li&g…
-
- 0 replies
- 1.6k views
-