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
-
Hello I am making a web template responsive but I am still learning and having some issues getting the headings responsive. 1) Initially they are all ok and inline but as the page gets smaller the second heading moves to the edge of the page on the left, but the top heading doesn't so they are not inline. 2) Then when the page is mobile size, the heading font does not downscale. Can anyone help me please, website dev link is here to look at Thanks in advance
-
- 3 replies
- 878 views
-
-
Hello all, I am looking to have an image which will respond to the browser size. The image needs to keep its aspect ratio and will respond to both width or height depending on which boundary it hits first. If anyone knows of a solution it would be a massive help. So far my google searches have not come up with much, Cheers.
-
- 9 replies
- 2.7k views
-
-
Big buzzword and important to anyone making websites now-a-days! A great talk from Brad Frost at the smashing conference puts a lot of things into perspective! http://vimeo.com/55076713 Enjoy!
-
- 0 replies
- 1.1k views
-
-
Hello, I have a problem with my website that i just have build. It all shows messed up on Smartphones. What is wrong? Don't know what. On the iPad the website displays very good but each time the banner photo changes the video comes in the banner and disappears when a new photo is loaded in the banner. This is the live link: www.pixelprinting.be Thanks for your time and info. Mathias
-
- 0 replies
- 1k views
-
-
Hey, have been using this: <script type="text/javascript" src="js/simple-expand.js"></script> <script type="text/javascript"> $(function () { $('.expander').simpleexpand(); prettyPrint(); }); </script> <a class="expander" href="#">Web Design / Development</a> <div class="content"> <p></p> <p></p> <p></p> </div> It was to expand the top div and show the content. This was working before but now its just stopped... Any ideas on what may have gone wrong? Havent touched the external js sheet niether a…
- 9 replies
- 3.4k views
-
Hello, so just wondering how i got about making my buttons appear the same on an ipad / iphone etc as they do in a normal laptop browser? Im using e.g <input type="submit"> And given it some styling, yet on a ipad it seems to do its own thing but keep e.g. font colour. How do i force it to stick to my css?
- 1 reply
- 853 views
-
Hi all, Having a problem with Max-width in CSS when running my responsive website in Internet.Explorer on the smaller screen resolutions. http://www.mason-uk.co.uk/responsive/html5boilerplate5-newnav.html To view open in IE and make the screen smaller than about 600px and you will see the main pic distort heigh wise. Is there anyway of instructing the css height to stay in scale to the width? Thanks Rich
-
- 4 replies
- 4.2k views
-
-
hello, i ve started with webdesign a month ago..Iam doing a website and there are white stripes whe wieving the web in chrome or ie. In opera is it fine. I made the layout in photoshop, than cutted in fireworks. The stripes are in places when it is cutted. Bud not everywhere. Can anyone help me please ?
- 14 replies
- 1.5k views
-
I am looking for a country map showing administative borders - similar to a politcal map. The map has to be interactive so that I can add personalize info for each region on the map. Adding colors or create animatations are plus. I don't want to use Flash or Java as the are inherently insecure and slow.
-
- 2 replies
- 1.1k views
-
-
Anyone know whats up here. The #site-header isnt working on ipads it cuts the colour off. (shrink the compter window) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style> body { background: #E0DED9; font-family: Open Sans,sans-serif; font-size: 13px; line-height: 23px; margin:0; padding:0; } #site-header { width:100%; height:150px; background: repeat-x #333; } /*======================…
- 16 replies
- 1.4k views
-
Ok, so I'm recoding a site to be responsive but want the site to remain the same until about 500px or so. At the moment I am using max-width: 480px and max-width: 320px and everything is fine, but on the iPad it cuts off the corners (as it should with the viewport scale stated in the HTML, but I don't want this). Is there anyway to have browsers ignore the 'initial-scale=1.0, maximum-scale=1' until it reaches the 500 or so mark? Or what would be the best way around this? Thanks. Al.
-
- 11 replies
- 1.3k views
-
-
Hi there, I've sucessfully removed page titles from my (twenty twelve) wp site by commenting out the php in a copy of page-content dot php. However, there is a big gap between the header and the start of the text. I've tried using developer tools on Google Chrome to identify the css I need to change, but I've hit a conceptual rock: the html contains ids (prefixed by #), but the stylesheet only contains classes. I can't work out which css to change to affect the required elements. This is what chrome displays when I select the areas I want: <div#main dot wrapper header#masthead dot site-header the site is: creativecounsellingdevon dot co dot uk Any hel…
- 2 replies
- 885 views
-
Hey everyone, Just a quick question.. I want to have a javascript function run when the user selects an option from a basic dropdown list. Is there a simple way to do this? So if they click the first option, it runs javascript function A. If they click the second option, it runs javascript function B. And so on.
- 10 replies
- 6.1k views
-
This is my first html 5 page but am having some issues as the footer isn't inheriting the background. Is there a reason for this and have I laid out this correctly? * { margin: 0; padding: 0; } body { margin: 0 auto; width: 941px; background: #f5f5dc; border: solid 1px #cccccc; } header, section, footer { background: #fffff0; display: block; } header { height: 100px; } #left { width: 200px; height: 300px; float: left; } #main { width: 740px; height: 300px; border-left: solid 1px #cccccc; float: left; } footer{ height: 100px; } <!DOCTYPE html> <html lang="en"> <head> <title>Whats Your Name?</title> <meta charse…
- 6 replies
- 889 views
-
Hi All, I'm not sure whether this would be a Java job or Flash, but I was hoping that when the time comes and I have a lot of the wesbite done I'd implement a video chat. I'd like it similar to chatroulette where you pretty much get a random person everytime, I'd also like the option to give the option to directly chat with someone using their ID like someones registered username so you can initiate a chat with that specific person if they desire to instead of a random person. Is this a really complex implementation or are there applications/templates to build this feature? Thanks All!
- 2 replies
- 2.9k views
-
If I was going to make a login system with other features which out of Java/JavaScript or PHP or any other would be best to learn? Which is the most up to date and would still be used in 5-10 years time.
- 12 replies
- 1.6k views
-
Hello, I have built a website and it renders pretty good in all the browsers. Only on IE8 i have some problems with the jquery scripts. They are not working at all. www.snapshot-evergem.be Do you know what is wrong? Is it the sequence how the scripts are typed in the head tag? Can you please help me because the site has to go online in a few days. Thank you
- 11 replies
- 4.3k views
-
Hi, I am looking for some opinions on a CSS formatting discussion I am having with another front end developer. I am going to try and keep it short as this has been a long discussion. We have a developer who like to style most of his/her CSS in relation to the body. Example: body > .wrapper > article.main > [itemprop="articleBody"] section:first-child { } this is a really short example, some lines have loads of *, ~ and + Now I find that this is so overly complicated and could be done with a simple class like .post-content { } I have less experience so I am just ignored when I mention this. But I am the one that has to update the site and I …
- 3 replies
- 1.3k views
-
I have started using css with php and so my style.css is now style.php Because of this dreamweaver doesn't highlight the syntax of the css within the style.php. Is there a way to force dreamweaver to use a certain language syntax highlight for a specified file, so I can force dreamweaver to highlight css within this .php file. Better still is there a way to get it to highlight css and php? If dreamweaver cannot do this does anyone know of any software that can do this that also supports code hinting, editing files directly on a server and opening multiple file in different tabs Thanks
- 3 replies
- 2.5k views
-
I've always used <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> in the head tag of my project and never had any problems but today jquery is somehow not loading. I haven't changed anything in my project and it worked yesterday plus it works when I load a different version. I also double checked that I don't have two versions running. Does this mean this version is unavailable on google? I suppose I could download it but it has always been very reliable. Am I missing something?
- 11 replies
- 2k views
-
I just found time to post a late night question. In the transition from css2 to css3 we’ve seen a lot of vendor prefixes. And oh yes, we like gradients, shadows, round corners and all that good stuff. My question is: What happens to a vendor prefix when it becomes standard like many of them already have. Will the developers at Firefox keep supporting the -moz-prefixes and Chrome the –webkit- prefix and for how long? I know it’s not recommended to use vendor prefixes for production. But it sure is very tempting to do so.
- 6 replies
- 1.3k views
-
Hi all, I've been building mobile and responsive websites for the last two or so years, and I'm finding the lines are becoming increasingly blurred between tablet and mobile websites, making it difficult to target mobiles exclusively using media queries. For example, I used to target mobiles generally by using a media query like so: @media only screen and (max-width : 650px) { .examplecss {display: block} } However lately I've been wondering - "What if a mobile device (particularly when in landscape exceeds) 650px in browser width? Or what if the browser width on a landscape (particularly portrait) falls below 650px? What then?" (By the way, the 650…
- 16 replies
- 3.2k views
-
I had noticed that my pure css dropdown and flyout menus on touch screens were unable to link with the dropdown or flyout levels because you can't hold your finger on a top level link and click a lower level at the same time. However, HTML5 has a solution using ARIA http://msdn.microsoft.com/en-us/library/ie/jj152135(v=vs.85).aspx and a tutorial here:- http://stackoverflow.com/questions/3474099/what-is-html5-aria which works on my sites, but I suppose a browser needs to be HTML5 compliant. Old browsers are unlikely to be on touch screen computers. I expect that javascript dropdown and flyout menus won't need this, but I'm not sure.
-
- 1 reply
- 1.7k views
-
-
I am trying to use a custom font on a webpage rather than an image. I downloaded a 'kit' from fontsquirrel and pasted the generated css into my existing css file. I then uploaded the actual font files (e.g. ttf) to a directory titled 'fonts' and edited the css to point at the full URL while the font files are located I've referenced this in my index page, but the text is not appearing in the new font. I've attached a notepad file showing the section of the css I am talking about - can anyone point out where I am going wrong? Thanks My code.txt
- 7 replies
- 943 views
-
Ok I have posted this in Stackoverflow and Sitepoint and still have no replies... Hoping someone, somewhere can help me with this. "I have looked through a few other questions and answers but still can't get this working in Safari (v 5.1.7). Here is my code - jsfiddle .services { width: 218px; float: left; margin-right: 29px; } .services img { border: solid 8px #ccc; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; } .services a img:hover { border: solid 8px #333; -o-transition: all 1s ease 0s; -ms-transition: all 1s ease 0s; -moz-transition: all 1s ease 0s; -webkit-transition: all 1s ease 0s; transition: all 1s ease 0s; } …
-
- 2 replies
- 2.3k views
-
-
Hi all, I am looking for a solution for an audio player that has the ability to play two audio files at the same time, but when clicking "before" it mutes one version of it, which would be the "After" side, and vice versa. Something similar to the audio player on this website wwwDOTdoctormixDOTcom. But i'd rather it not be made out of flash. But if it has to be, that's ok. Any ideas? Thanks!
-
- 0 replies
- 1.5k views
-
-
I just realized my site seems to have a strange padding on the right side when I view it from my phone. I can't reporduce it it any browers on the computer, just the phone. Any ideas? The address is my "portfolio" link in my sig below. My phone is a Samsung Galaxy S III if that helps, though I think it happens on all phones. Attached a screen shot of what I'm talking about.
-
- 4 replies
- 2.5k views
-
-
I'm looking at rethinking my tools (I do this now and again) - I feel i've slipped behind trends of good modern CSS/HTML editors, and what I should be using. Can anyone recommend what the best CSS editor for 2013 is? I use Creative Suite CS6 - which had dreamweaver, sure but I tend to use the other packages more. I say 2013 - as want to be up-to-date with you cool kidz! I'm looking for something less bloaty than DW-CS6. I'm PC based.
- 13 replies
- 21.3k views
-
Hi, I'm learning to get a basic site displaying correctly for mobile devices. However I'm finding it difficult to get a height of a div to display as a percentage of a screen. At the moment when the phone is upright it all looks good, but when I turn it to landscape the height of the div becomes larger. I have set the width to 100% for all my divs and tried to set the height of my divs as a percentage, but its not working. I can't get my head around this one. Could someone point me in the right direction? Thank you. Neil
-
- 1 reply
- 876 views
-
-
Hi everyone, I've ran into another problem, not a critical one just a really annoying one. I have form on my website that I'm making and currently looks fine in opera my main browser but when i checked it in IE9 its out of alignment. I have heard about webkits but i don't know how to implement them so if anyone could help me that would be great. Thanks
- 8 replies
- 910 views
-
I got this template up and running the way we want it but everytime i add more jQuery into the template, either in my script(dot)js or on the HTML page i get this error: jCarousel: No height/width set for items, this will cause an infinite loop, aborting! when i delete my added code, the error goes away. Does anyone know how to fix this error? i tried adding itemFallbackDimension somewhere but i dont really know where to add it, lol. I would post code but i wont for 2 reasons, i cant and its like 1000 lines long all together. thanks!
-
- 1 reply
- 889 views
-
-
Unfortunately JS and jQuery, past the necessities has never been much of my strong point and I've hit a bit of a snag attempting to output the XML produced from the typical "REST service I made earlier", having tried a number of solutions I'm at my wits end... A sample data set and example JS is below, though this would typically be returned based on the provided url, it seems any attempt to use a url or external XML file fail. $(document).ready(function() { $.get('http://localdev/books/course/CC150/xml', function(d){ $('body').append('<h1> Recommended Web Development Books </h1>'); $('body').append('<dl&g…
-
- 1 reply
- 863 views
-
-
Im trying to get it so when you hover over one of the images it shows a content box with a little information about what it is and when they click the image it takes them to where ever it is i want them to go, i have this: pastebin(dot)com(slash)1USAC56R (sorry, i cant post code or html ) which works, but it shows the same thing on every image and i cant seem to get them to be seperate. Im not much of a jQuery master, so go easy on me lol. How would i get it so that all the images say different things when you hover over them? Thanks!
- 2 replies
- 878 views
-
Hello there, I'm working at the moment with forms, and I'm getting something I don't understand right now. I want to replace the submit button by a little image, till there, that's ok.... Nevertheless, this image is not perfectly aligned with the "search field" (don't know If It's correct to name it this way in english). So what I 've tried to do, is to align that picture with some css ( with the property vertical-align) but I can't get it working correctly if I put the CSS directly in my stylesheet, whereas If I put my css directly in the tag, It works perfectly... An exemple to show you how I manage to do that. 1) that way works : <form act…
- 7 replies
- 1.4k views
-
Hello everyone i'm new arround here and i hope to be arround, because it is a nice forum and maybe you could please help me out. I hope you can help me on this issue i had . I work on sharepoint, so i basically have html, js and css capabilities. I currently have an image rotator banner for announcements wich works over a XML file like this: <?xml version="1.0" encoding="utf-8"?> <Banners> <Banner> <Source></Source> <Link></Link> <TimeDelay>7</TimeDelay> </Banner> <Banner> <Source></Source> <Link></Link> <TimeDelay>7…
- 1 reply
- 926 views
-
A site I'm working on at the moment has an element that is slightly offline like there is margin-right added when all margin is 0. Also when I shrink the browser to the iphones screensize on a laptop, the issue is not there, only when viewed on an actual iPhone does the problem occur. Anyone know why this is? Here's the screenshot - The 'time' box is not reaching the edge of the border like it does in a browser. The location box and time boxes are both h6 with display:inline-block with margin:0 applied to both. The location box is 70% and the time box is 30%, so can't work out why it's missing a pixel or two off to the right! Thanks for any help. Edi…
-
- 0 replies
- 1.1k views
-
-
Where do I start??? I have centred the template I am coding but some text is staying with the template but the other text just stay's where the template was in the beginning. There is 4 headings, 4 paragraphs and 2 images. Only 1 paragraph stays embedded but the others are just floating in the air. Is it bacause I have positioned them absolute?
- 19 replies
- 1.6k views
-
Hello there, I was just wondering something about the property border-radius. I've seen some people using different properties to be sure It works correctly under each browser. But isn't it "outdated" ? I mean I've just tested the border-radius property alone in a css, and It seems to work correctly under all the browsers. An example: -moz-border-radius: 10px; /*for firefox*/ webkit-border-radius;10px; /*for safari and chrome*/ -o-border-radius: 10px; /*for opera*/ border-radius: 10px; Maybe that was common to use this with the previous versions of the browsers. Pretty sure about that but want to be sure. I don't want to miss something !
- 6 replies
- 1.2k views
-
Hi, I would like to know the basic rule of margin and padding in CSS. Waiting for useful reply.
- 12 replies
- 1.7k views
-
Hi everyone I am creating a side box for a website that will house their Twitter feed. It is constructed from a series of DIVs: An all-encompassing div called 'twitter' A div for the heading label (twit_top) A div to contain all elements of all of the tweets (twit_main) A div to contain all elements of the individual tweets (twit) Then the two elements: (twit_date and twit_text) The whole set is contained within a div called "right" which is floated to the right and this in turn is contained within a div called "main". Main is one of three key divs within a centralised collecting div called "container". I have set the overflow-y to scroll and the overflow-x …
-
- 2 replies
- 879 views
-
-
Hey Everybody! First time poster so be kind For years I've faced this issue. Every site of ours SOMEHOW has ended up heavy on this font family. Designs in Photoshop always look great... then coded looks bad. It's like the stroke of the font itself is too fat. I would totally accept this as being a typical web irregularity but somehow on one of the pages buttons of our site it's coming off as a thinner stroke exactly as I would hope in Safari. I have tried EVERYTHING matching the CSS to the "T" and I can't get my other page to use a thinner stroke (weight or whatever) as the one I like does. Check out these Safari screenshots to see what I'm referring to: (…
- 6 replies
- 1.7k views
-
Hi all, I am trying to get a menu to appear when you scroll so far down to a certain position on a page and a menu appears at the top where my booking system will appear. If you scroll down on this page: http://www.tripadvisor.co.uk/Hotel_Review-g187791-d191099-Reviews-Albergo_del_Senato-Rome_Lazio.html You will see that a menu appears at the top and dissappears when you scroll back up. This is what I am looking for, I cant seem to find anything in google. Can you please help me ASAP. Many Thanks Jamie
-
- 4 replies
- 1.5k views
-
-
I want a divider between each post on my news page (http://http://www.shaunhillphotography.co.uk/news/), like the one on http://pexeto.com/acoustic_wp/blog/ I have a valid installation of this theme, but it just didn't cut it. So I have been working with an alternative theme. However, I miss the above described feature and would like it reintroduced using the alternative theme. I expect I will need to make a modification to a php file, so that the theme automatically inserts this divider between each news article automatically, along with inserting .category-news{width: 100%;display: block;border-top: 1px solid #ebebeb;border-bottom: 1px solid #f5f5f5;} in…
- 20 replies
- 2.3k views
-
HI, Is there any way to show random links in a web page without using javascript suppose I have a list of 20 links but I want to show only 5 links at a time is it possible using only html and css.
-
- 3 replies
- 878 views
-
-
Is there a simple way in Javascript or jQuery to have it so if the value of a variable turns up NaN, it displays a 0 instead?
-
- 1 reply
- 860 views
-
-
Title says the question. What is the difference between JavaScript and jQuery?
-
- 5 replies
- 2.5k views
-
-
Good afternoon, Just a quick question. What is the best approach to use to display the answers of an online form for the user to confirm before submitting the form? Thanks. Lee.
-
- 3 replies
- 900 views
-
-
Hello All I am trying to do a single page site. I have got most of the stuff, but need the scroll to, but for some reason it aint working, I dnt think i missed anything but 2 sets of eyes are better than one. link is www.davidcook.me/main thanks
- 16 replies
- 1.4k views
-
Please help. I'd like to style elements of my drop down list, but am struggling. See attached
- 4 replies
- 876 views
-
I wanted to know if anyone knew of resources that go over mobile web design. I know HTML and CSS and stuff like that but I have not read about designing mobile websites. Is their a preferred method or approach? Also I heard that you have to design two separate websites one for your regular website and the other for your desktop style website. Is that true?
- 2 replies
- 961 views