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
-
Im trying to get this 'scroll-to' jquery script to work but its not happening for some reason. Here is the tutorial http://gazpo.com/2012/03/horizontal-content-scroll/ and here is my html nd css. Any ideas? html <!DOCTYPE html> <html> <head> <title>PW</title> <link rel="stylesheet" type="text/css" href="style/style.css"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script> function goto(id, t){ //animate to the div id. $(".contentBoxWrapper").animate({"left": -($(id).position().left)}, 600); // remove "active" class from all links inside #nav $('#nav a').r…
-
- 6 replies
- 1.4k views
-
-
I'm having a nightmare trying to figure out how to edit the CSS to create a dropdown menu from existing css at http://www.tpw.uk.com Below is the CSS for the #header and #mainnav - could someone please help and point out where I need to add the dropdown bits? I'm getting really confused and nothing seems to work /** header *******************/ #header { background:url(images/bgHeader.jpg) no-repeat center top; height:274px; } #header h1 { float:right; width:280px; height:200px; margin:0 0 21px 0; } #header h1 a { display:block; width:280px; height:200px; text-indent:-9999px; } #header h2 { margin:0 0 0 0; color:red; float:l…
-
- 1 reply
- 988 views
-
-
Hi, I'm trying to set up a website for a friend, and have been trying to set up a slideshow using Galleriffic. I'm au fait with HTML and CSS, but I haven't learnt Javascript yet, so I'm not really sure what's going wrong, but when the slideshow changes pictures, the new picture appears below the current picture, before moving up to take its place, and it shouldn't do this. This is where I've got so far: http://www.bondwebdesign.com/mynwood/ Can anybody help? Can you also advise me on how to best go about learning the basics of Javascript, so I'll understand how the Galleriffic slideshow works? I suspect it might be some of the CSS styles that apply to the …
-
- 2 replies
- 3.8k views
-
-
Good afternoon to you all. i am starting working with jquery and i want to animate the width of my container - i can do this, but instead of it just animating left i want the width to animate equal amounts left and right. Any advice greatly appreciated. Craig
- 23 replies
- 2.4k views
-
I have just bought the Responsive Tile Gallery by Andrew Mead from codecanyon. I want the images aligned perfectly. However, although the columns are perfectly aligned the rows are not and I cannot seem to resolve this. Can anyone suggest a fix or is it simply not possible. Here's a link to the demo: http://codecanyon.net/item/responsive-tile-gallery/full_screen_preview/3290154.
-
- 2 replies
- 1.3k views
-
-
Hi guys, I have the following script which basically is "attached" to a contact form, however when i submit the form it refreshes the page. How can i make that it submits the form via ajax showing validation without refreshing the page ? Thank you jQuery(document).ready(function($){ // contact var error = true; function addLoading( e ) { $(e).val( '{wait}'.replace('{wait}', contactForm.wait) ).attr('disabled', true); } function removeLoading( e ) { $(e).val(value_submit).attr('disabled', false); } function addError(msg, e, effect) { error = true; $(e).removeClass('icon success'); $(e).addClass('icon error'); $(e).parents('li').find('.msg-error…
-
- 2 replies
- 1.3k views
-
-
I've recently started gearing my code more towards SMACSS and OOCSS but in doing so it's opened up a can of worms. I've had all kinds of ideas on how best to structure CSS and CSS related HTML. For example I've started using a lot more classes to isolate different elements for a) potential reuse and b.) avoidance of potential clashes with other elements, e.g. using one class for many elements is eventually going to force you to overwrite that class whereas having specific classes means you give each element its' own styling. I'm currently thinking about devoting a section of my CSS purely to any structural element that could potentially be reused. So instead of a pro…
-
- 2 replies
- 894 views
-
-
Hey guys I wanted to know if anyone could recommend a script that will do the following... I'm going to have a thumbnail picture and I would like it to basically appear in a separate "frame" (I guess) on top of the website where you can see the full size of the image. Do any of you have any examples or suggestions for doing something like that? Any help would be greatly appreciated. Thanks in advance. -Ian
-
- 3 replies
- 886 views
-
-
So just converted my swf file from swf to HTML via googlelabs swiffy. At the end of my swf file I have a simple stop(); to make sure that the swf file only plays once. However I don't think swiffy supports this as the HTML5 version repeats continuously. Any work around for this?
-
- 0 replies
- 1.1k views
-
-
Hi, I have a big problem that i cant solve for days. I have a container that is 1000px in width and any other element is 960px in width with margin 0 auto so it align in center of container. here are some css: .container { width: 1000px; background: #FFF; margin: 0 auto; -moz-box-shadow:5px 8px 5px #; -webkit-box-shadow:5px 8px 5px #; box-shadow:5px 8px 5px #; margin-top:30px; } .menu{ width:960px; height:50px; margin:0 auto; } .slider{ width:960px; height:500px; margin:0 auto; } .sadrzaj{ width:960px; height:200px; margin:0 auto; } OK so my problem starts when i try to put all of this elements in container div, if i remove one then the page …
-
- 12 replies
- 1.2k views
-
-
Hello, I'm making a sortable table here: http://mylzh.net/content.php?196 and if you see, when you sort a column, for a short amount of time you can't scroll up without being kicked back down. Is there a way to stop this happening? - Luke
-
- 0 replies
- 902 views
-
-
Yo so just running the W3C checker on my website and am currently down to 2 errors that I don't really understand, I've provided an image: http://s12.postimage.org/xxaeuu8ff/prob.jpg
-
- 2 replies
- 6.5k views
-
-
Just thought you guys should know that CKEditor 4 was release. It’s now capable of html5 inline editing, has a new improved skin. The ckeditor.com site lets you customize your editor by adding or removing plugins, so everyone can build up or slim down their own version of CKEditor. Enjoy http://ckeditor.com/demo#inline
-
- 0 replies
- 896 views
-
-
See www.scottwotherspoon.com On the front page, there are 3 columns, the first two should have custom scrollbars with arrow icons to move the slider. When the site first loads, these are not visible, they are, however, present when you refresh the page. Anybody have any ideas?
-
- 1 reply
- 886 views
-
-
hi im currently setting up a loan website for a client they have supplied the forms for the site, but when i place the form in dreamweaver and test it will not submit the form here is the part of the code can anyone tell me why? line 343-345 last line of html <input style="font-size:10px" type=button value="Send Form" name="Submit" onclick="MM_validateForm('firstname','','R','surname','','R','dobyy','','RinRange1900:1999','loanamount','','RisNum');" />       </p> </form> im trying to get it so it directs to this which is in line 36-45 of the html </body> </html> <form name="AppForm2a" method=…
- 4 replies
- 875 views
-
Dear Webdevelopers, Hope somebody out there can help me with the following: Made a website, but in IE there's a frame around 'contact' that should be removed. ( No troubles in Firefox, Chrome,..) Can anyone help me to remove this frame please? www.densodesign.be/Liberant Thanks in advance, Dennis
-
- 3 replies
- 4k views
-
-
jQuery UI developer Kris Borchers, Senior Software Engineer in Red Hat, presented about the improvement of widget factory. For instance, inheritance, Lifecycle – Creation, Lifecycle – Redefine, Lifecycle – Destroy, etc. are introduced during the session. Inheritance _super() / _superApply() Old: $.Widget.prototoype._setOption.call( this, "foo", "bar" ); New: (inside of_setOption) this._super( "foo", "bar" ); Notes: Widgets support inheritance and have at least one parent There was no easy way to call parent methods _supperApply is same just array of args is passed like apply If you want to see …
-
- 0 replies
- 1.4k views
-
-
Hello! I have a responsive site for a client: gad-center.com. It goes mental in IE8. I'm testing with adobe web labs and net render.com as i don't have a pc. The main problem is it seems to default to the @media query for portrait tablet and not desktop BUT... it is also displaying the menu un-styled vertically twice but without the home page link (as well as the normal styled horizonal menu). Ithink that is causing my header div to expand in height displaying a repeat background pattern... yikes. any help mucho appreciated.
-
- 2 replies
- 2.4k views
-
-
Hey so I currently have a row of images that each change the source of an image on my page to a different image and its href. Now What I also need each image to do is change the content of the div below each div so each image shows a different description. I've tried innerHTML but that doesn't sleep to work when you supply text such as <h3>TITLE</h3><p>TEXT HERE</p> as the text just doesn't display and obviously I want to use my CSS to style this text. Thanks
-
- 3 replies
- 876 views
-
-
Please go to the following site: *link removed* I've got a 27" iMac and that site width goes way over the 1024px that we're supposed to design sites for, as that's the minimum width of most resolutions. Can someone please tell me how their site looks on a 1024 res screen? Does it all fit into the screen or do you have to scroll left and right to view it all? Do you make sites that change depending on the user's resolution? Please inform me. thanks
-
- 1 reply
- 1.3k views
-
-
During jQuery Conference Asia, most common problems that mobile web application developers run into have been addressed by Alexander Schmitz, a formal member of jQuery Foundation as well. The presentation topic “jQuery Mobile Common Pitfalls and Gatchas” provided a numerous valuable information. Here is an example, “IM TRYING TO USE THE APPLICATION CACHE AND IT'S NOT WORKING” Some browsers return a status of zero. This causes error handlers to be triggered in jQuery's Ajax function. There is however a workaround $.ajaxPrefilter( function(options, originalOptions, jqXHR) { if ( applicationCache && applicationCache.status != a…
-
- 0 replies
- 1.4k views
-
-
Hi, So, I have a filter that is just 4 words. When a word is clicked, a little bit of js adds the class 'selected' to it. When you click on another word it removes the class 'selected' and adds it to the new word clicked. Here's the js for that: function selectNav() { $(this) .parents('ul:first') .find('li') .removeClass('selected') .end() .end() .addClass('selected'); } $('#portfolio-wrapper #portfolio-filter').find('li').click(selectNav); Now what I want to do is apply a class to a particular li element further down the page, only if the word has the class 'selected'. I've started like so: if…
- 16 replies
- 2.5k views
-
Just thinking about implementing one as having display issues in IE 7 & 8, what are your options? Is this a no go in terms of web designing?
-
- 1 reply
- 1k views
-
-
Hey guys, This quesition is entirely of my own making (i.e. not planning enough first). Basically, I am using this clearfix code: /*Clearfix*/ .clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; } .clearfix { display: inline-block; } html[xmlns] .clearfix { display: block; } * html .clearfix { height: 1%; } iframe { text-align: center; } The issue i am having is that i want to hide an element, using display:none to an element that i have added the clearfix class (it containts a display: inline-block;) too. I have tried it in different orders but i cant seem to make th…
- 4 replies
- 895 views
-
Hello, this is my first post so I apologise If it's in the wrong section or anything. I have a javascript falling snow effect I got from this site, http://www.hypergurl.../snowmaker.html I added it to my page in the correct location, just after the body tag. I've tested it in Chrome, IE8 and IE9. It only works in IE8 and breaks the same way in the other two. Here's a link to the live page, http://sandbox.flash...d1.tk/index.php If it makes any difference, I have a file called, "top.shtml" Which is included in every page like this: <? readfile("top.shtml"); ?> The snow effect is only in top.shtml and when you open top.shtml on it's own, it …
-
- 1 reply
- 972 views
-
-
I currently have a ribbon effect on my headers but have only just discovered these are not supported in IE7 & 8. This is my code: .ribbon h1 {display: block; height: 18px; line-height: 1.3; width:855px; margin-left:5px; margin-top:0px; margin-bottom:15px; padding: 12px 10px; position: relative; left:-27px; top:5px; color:#fff; font: normal 11.5px 'Lucida Sans Unicode','Lucida Grande',Helvetica,Arial,sans-serif; font-weight:bold; border-bottom: 1px solid #668823; background-image:url(../img/nav-bg.gif);} .ribbon h1:before,.ribbon h1:after, h3.widget-title:before, h3.widget-title:after { content: ''; display: block; width: 0; height: 0; position: absolute; bott…
-
- 4 replies
- 885 views
-
-
Good evening, I am in the process of designing an online form & want to make it as presentable as possible & want to use some CSS 3 properties such as border radius but i need to target internet explorer users of who alot will still be using internet explorer 8 & below. The form needs to look & behave the same across all browsers. How do i approach this? Thanks in advance. Lee.
-
- 3 replies
- 903 views
-
-
Hope, Beginners will find it very easy to start with HTML5... HTML5.htm
-
- 0 replies
- 959 views
-
-
Any suggestions? http://wildlifetraveladventure.com/index.html Cheers, Emma
- 5 replies
- 1.3k views
-
WDF Feel like I have a css problem here, but cannot seem to figure it out - on my site I have URL here: http://universitycompare.com/courses/?course_name=psychology&min_fee=0&max_fee=12000&course_type=1&order_by=fee+asc The image URL shown in the search results are fine, and work in a new tab/browser - but are not showing in the results, any clue why? Only thing I can think of is where the URL path is correct, meaning it must be a CSS issue? - but clueless now.. FYI - it is built on wordpress, yet don't think this is a problem.
- 5 replies
- 3.5k views
-
Hi All, i have made a few sliders and my own lightbox, it works perfect for images and the only problem i am is if some one clicks the video it starts to play rather than loading lightbox, if i change onclick to mouseout it works how i want but it needs to load on click does anyone know how to prevent default on youtube video i dont seem to be able to make it work Thanks
-
- 0 replies
- 1.3k views
-
-
Hi! I put this script http://tinynav.viljamis.com/ in my layout and after that my selective menu has fixed width. But tinynav should be responsive. My layout here http://jsfiddle.net/8BNFy/ . My site http://b.pusku.com/ Maybe problem with bootstrap responsive. css or js. Maybe i soould set 767 px in tinynav and how to do it? Any ideas? I appreciate any help. Thank you!
-
- 0 replies
- 1.4k views
-
-
Hi all, It's been a while since I've been on here and I'm sure things have changed a lot. Hopefully some of the old warriors are still on here. Hope everyone is good. Anyway enough of the small talk here's my deal; I have a task set for me which is non-changeable. No- I cannot use CSS3. Yes- it has to validate to XHTML 1.0 & CSS 2.1! I have produced Thumbnails, Sketches, Lo Fi Wireframes, Hi Fi Wireframes and of course the Screen Designs. The next step of course is for me to build the site however there are some tight restrictions which clash with the build ability of my site as mentioned above. I am using a white rectangular box with 6px round edges with …
-
- 1 reply
- 887 views
-
-
Hi All, I'm integrating a slider (Flexslider) on the homepage of a website which is essentially 2 carousels, controlled by one set of controls. You can view the site here: http://dev.voltronik.co.uk/hawkeswood/ The whole thing works but there are 2 problems: The text on the left jumps when transitioning between slides. The fading of the images should be just from one to the next but instead it's fading out to white, then fading the other in (and not too smoothly either). The slider fades smoothly on this page: http://dev.voltronik.co.uk/hawkeswood/products/nova/nova-u/ but i'm unable to get it to work in the same way on the homepage. I'm fairly su…
-
- 0 replies
- 4.5k views
-
-
HI there - I know this is probably quite simple, but I'm not sure how to do it. I'd like to put a bunch of text in quite a small area, it's therefore essential that users can scroll through the text to view. This website has exactly what I want. (http://www.rainbowwinters.com/autumnwinter2011.html) As you can see, users can scroll through the text which would have spilt over otherwise. Does anyone know how I can do this? Any help would be hugely appreciated! regards
-
- 3 replies
- 3.1k views
-
-
So, here's the problem. Here's the challenge: How can I make this work smoothly in a responsive situation? I managed to do it with JS figuring out the height and moving it from the top but as you move the sides in, it jumps around. Cheers, ~evu.
-
- 1 reply
- 1k views
-
-
Ok, So I found an example of a simple slider function that displays a list of blog archives by year, when clicked it slides down to show the months of that year. Great! Only problem is that clicking again should hide it, but it doesn't. Any ideas what I am missing? Code below. <script type="text/javascript"> $(document).ready(function() { $('.blog-list-archive li ul').hide(); $('.blog-list-archive li a').click(function(){ $(this).parent().addClass('selected'); $(this).parent().children('ul').slideDown(250); $(this).parent().siblings().children('ul').slideUp(250); $(this).parent().siblings().removeClass('selected'); }); }); </script> <style> .…
-
- 1 reply
- 878 views
-
-
This is my first big project and I am looking for some advice on why my images will not work. (in addition if anyone wants to help me as far as the amount of html5 i should be implementing) Here is the html <!DOCTYPE html> <html> <head> <title>Content</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="content" /> <meta name="robots" content="noodp, noydir" /> <!-- SEO fix: MSNbot, Googleboy, Yahooslurp--> <link rel="stylesheet" type="text/css" media="all" href="main.css" /> </head> <body> <div id="top" class="wrapp…
-
- 4 replies
- 1.4k views
-
-
Hi together, Some months ago I developed a special php web application for mobile phones. Our customers use Samsung Galaxy xcover with Android and Opera Mobile for browsing the application. I use a JS functionality called "navigator.getUserMedia". I think it's very powerful, but there's something I'm missing. Look: I use "navigator.getUserMedia" to give the end user the possibility to make snapshots and upload the images to my webserver directory. And it works fine, really! But - and that's my problem - I haven't found out how to change resolution of these phone snapshots. I checked the whole Javascript code if there's a possibility to define resolution…
-
- 0 replies
- 1.2k views
-
-
Good Morning all, I am about to build a new website, and i thought i would get more involved with JQuery. What i would like to do is; create a header, with 5 links inside. width 1000px; create a footer with a top border and position it underneath the header a background image will be the logo and sit between the header and the footer. on clicking a link, i would like the footer to move down.... (i can do this part) then a line to form in the center and slide left 500px and right 500 px creating a 1000px container. any advise and tips on where to start learning this would be great I also want all the content to be on separate pages, so Jquery would load and ani…
-
- 2 replies
- 879 views
-
-
I have a hover effect on my website that I am creating that works fine on every browser with the exception of the Opera Web browser. Once you hover the image the div that has an css opacity should show and on roll off the div fades away but this does not happen in this browser. Here is the javascript: $(document).ready(function(){ $('.project').hover(function() { $(this).fadeTo("slow",1,"linear",1); },function() { $(this).fadeTo("slow",0, "linear",1); }); }); Here is the css for the section: #portfolio-images ul#portfolio li div.project{ position:relative; display:inline-block; opacity:0; *display: inline; *vertical-align: auto; } Here is the…
-
- 0 replies
- 1k views
-
-
Hi, I only know basic html and css. So when I see websites with a url that doesn't end in '.html' for.eg. "www.example.com/profile" it confuses me. Can someone explain how i can understand and do sites like this. cheers, J
- 5 replies
- 896 views
-
Hi All, i am trying to make my own slider (right to left) I have it working as expected except for chrome on a mac, is this going to be a screen size problem or something simple function right() {// create a function for the right arrow clicked and the animation on load if(count<slideImg) {//if slide number is less than number of slides continue count++; //increase the slide number by 1 $(".slides").animate({"left": "-=960px"}, "slow");// move the slide } else {// if were on the last slide var back=slideImg * 960 - 960; //calculate the pixels to animate $(".slides").animate({"left": "+="+back}, "slow");// go to first slide count=1;// set the slide n…
-
- 3 replies
- 895 views
-
-
Hi there It's my first slide show and i can't understand it !! Please Explain Below code to me : <html> <head> </head> <style type="text/css"> .slideshow-example-frame { -moz-border-radius: 7px; -webkit-border-radius: 7px; border-radius: 7px; -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 1); -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 1); box-shadow: 0px 0px 10px rgba(0, 0, 0, 1); width:420px; height:131px; margin:30px 30px 30px 22px; } .slideshow-example-frame img { -moz-border-radius: 7px; -webkit-border-radius: 7px; border-radius: 7px; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; -webkit-an…
-
- 7 replies
- 1.2k views
-
-
Hi! I need to center my drop-down menu - I want it to appear at the center of the screen. So far I have positioned it 350px from the left, which is not a good idea, I know I tried to center it by <center>, but it didn't work. Can you please help me? Here is the code with the position of the drop down menu: .dropdown_menu { list-style:none; font-weight:normal; margin-bottom:10px; width:100%; position:absolute; left: 350px; z-index:5; font-size: 17px; } As you see, I am a newbie and I cannot make it bymyself. All advices are welcome! Thank you!
-
- 8 replies
- 907 views
-
-
Hey all! Building a new responsive Wordpress theme. It is my first time with PHP, Wordpress and Responsive Design. Due to me taking on a lot at once, I decided to use a base theme to get me started. After stripping it down and editing the style to my liking, I have come up with an issue with my shop layout. The products are not displaying correctly. Rather than clearing to the side of one another, they are floating in a single column. I have stripped the code down and gone over it again. No luck. I must be missing something obvious here but could do with a fellow designer to have a peek. The site is nowhere near finished yet but I would rather get this issue fixed…
-
- 1 reply
- 1.4k views
-
-
Hi There sry my eng is not fine I created a class for current page: .current { background-color: #ccc; color: #FF0000; } There are 4 menu buttons namely (Home - Portfolio - About Us - Contact) I want to using .current class when menu buttons is activated...! tnx...
-
- 1 reply
- 896 views
-
-
Hey guys, I know that you can use media queries to adjust the content on a website depending on the width of the website - useful to go from laptop to tablet to phone etc. What I'm trying to do is make my browser display different content when the size of the browser hits a certain size (size meaning width AND height) eg. when my browser is 200 width AND 200 height - the text is red when my browser is 200 width BUT 300 height - the text is blue When my browser is 400 width and 20 height - the text is green @media screen and (height : 500px) { p{ color: red; } } This makes the text red when the height is 500px, but say I only want the text to go red w…
-
- 2 replies
- 4.5k views
-
-
Hello guys, I was wondering if I were to design a little 175x40 buttons for my side menu of my site would I be able to use those images in the same way that the standard like buttons are used on most sites? If that's possible, how would I do that? Do any of you know where I can get the code to add that to my site? And would I have to put anything special in the body or head of the code in order for it to work? Please explain as best as you can. And sorry if this is a "noobie" question but I've never done this before. Thanks in advance guys.
-
- 15 replies
- 1.4k views
-
-
Hi guys, I'm having a problem with the facebook like box. I've trying to add it to my website, but the problem that I just can't! I've been trying all those tutorials around internet, But no one worked! Can you help me please? I have a background and a space to add the box, but I would like to see the background... I'm new to Dreamweaver, anyways, tks for any help
-
- 22 replies
- 3.5k views
-