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 guys, As the title suggests i'm looking to vertically center each of my <div> content. Please see my attachment and it should become clear what i'm after. Here's my code as it stands. http://jsfiddle.net/2Kqnu/ I've tried various methods such as vertical-align: middle; margin-top:?? ; margin-bottom:?? ; padding:?? ; but nothing seems to be taking affect for some reason. Thank you once again.
- 8 replies
- 1.5k views
-
Hello, i am echoing out some data from a database and need to close / hide part of it. An example of this is: From the database i am echoing out a div called 'commentsbox' In my header i have a button that will close / open all of the divs with the same class name. I have this: http://jsfiddle.net/aJc2B/ Can anyone modify it to work?
- 2 replies
- 889 views
-
Hello, I'm wanting to get the .wrap to go over the Content Area and the sidebar. So I can get the footer under them both. <div id="wrapper"> <header class="site-header"> <div class="head"> <h1>HEADER!</h1> </div><!-- .head ---> </header><!-- #masthead --> <div id="wrap"> <div class="content-area"> Content Area </div><!-- .content-area --> <div id="sidebar"> Side Bar </div><!-- #sidebar --> </div><!-- #wrap --> <footer id="footer" class="clear"> <div class="site-info">Side Bar!</div>…
-
- 2 replies
- 878 views
-
-
Hi guys, I'm looking for a simple layout method for the attached design. A while ago I asked about the possible use of tables to execute something similar, but this was not the suggested way to go. As a relative newby to HTML / CSS, I would like to keep my first full site as simple as possible. Oh, I should mention, I have already done the logo and headers, its just the page content (3 images and text paragraphs) that I would like some help with. Many thanks in advance, Greg P.S. I have tried CodeAcademy but can not seem to find a simple method.
- 15 replies
- 1.7k views
-
Hey guys I can't seem to figure out why my Linkedin logo is higher than my facebook and google plus logo at the bottom of this page. http://www.englishclick.net/ Do you guys see anything unusual? Thanks in advance.
- 5 replies
- 900 views
-
I'm just not able to scroll down on my website: http://wifihack.nu/fr I don't have overflow in there and I do have a couple of css files.
-
- 4 replies
- 965 views
-
-
I'm trying to set up this website using Full Screen Image Blur Effect but for some reason it works on the website that I tested it on, but it won't work on the actual domain that I want to use it on. In fact, I even tested it on every other domain that I own and it doesn't work - it gets to the loading page and never loads. I'm confused as to why it works on one of my domains and not on any of my other domains. The domains were purchased from the same website, the same package, hosted on the same hosting. I've uploaded the exact same folder with the exact same files to each website. Please help! Here it is working on the wrong domain Here it is not working on the right…
-
- 3 replies
- 3.8k views
-
-
Hi, I have been searching for this answer for long time. I have done a little research and found that this site using something called jQuery Masonry and jQuery isotope for displaying the portfolio items. What my question is how, upon loading completion, the gallery/portfolio items are expanding/unfolding from top-left corner with a nice effect? Please see for yourself on live site and also the attachment: http://qindex.de/site/category/all/ I want to do something similar for my site and looking for answer. Thanks a lot.
-
- 0 replies
- 994 views
-
-
Hello, not a big issue, but jquery masonry just seems slow at ordering the images. It loads a long line and then a couple of seconds later orders them correctly. Any reason for this or just the way it goes? Link: www.buildsanctuary.com
-
- 2 replies
- 1.2k views
-
-
Hi everyone. I'm having some problems regarding cross-browser compatibility. I've implemented a jquery lightbox that works fine with all browsers except IE7 and IE8. To describe the bug the lightbox opens and then closes. The entire page then gets masked. The event.preventDefault and the event.returnValue = false simply aren't working: I've attached the code below. This is my first post to this site so forgive me if you need to post the code between specific tags. $(document).ready(function() { $('a.login-window').click(function(event) { //Getting the variable's value from a link var loginBox = $(this).attr('href'); //Fade in the Popup $(l…
-
- 5 replies
- 1.2k views
-
-
Hi all, I created a few simple websites in the past but that's my first html5 website. I have been reading about new semantic elements. I'm wondering about the organisation of the website header. How would I correctly organise a simple page header like the one below: ------------------------------------------------------------------------------ | | | | Logo | item1 item2 item3 item4 | |_________________________|___________________________________________________| The main box is the header <header></header>. Now I'd like…
- 8 replies
- 934 views
-
I have made a basic slideshow using JavaScript. I did this by modifying code from several examples that did slightly different things to this. I started with the JavaScript code in the <head> section and it worked OK. I decided to put the JavaScript code into external files. I can only get it to work if I declare one external script or the other but not both. For this reason I have shown the code for one of the function still in the <head> section with the other declared as an external file. I am hoping someone can point me in the right direction. I have tried several ways and getting frustrated. <!DOCTYPE html> <html> <head> …
-
- 3 replies
- 898 views
-
-
Hello, so im simply echoing out images from my database and giving them a white border. For some reason though there is a gap above and below the image... I have tested this on another page and it was all fine but for some reason this wont go away. php echo: <a href='viewbuild.php?id=$id'> <div class='blogresults'> <input type='hidden' value='" .$id. " ' /> <div id='coverimage'> <img width='100%' src='$coverimage' alt='".$blogtitle."'> </div> </div> </a> css is: .blogresults { width: 23%; border: 4px solid #fff; height:auto; opacity: 0.9; } here the page for exampl…
- 3 replies
- 879 views
-
Good morning, I am editing some colours of a theme for a client.... I cannot for the life of me find the css for the brownish/grey inner border for the "Recent Works" section. Can anyone help me out? URL is http://charlyanderson.co.uk/new-website/
-
- 5 replies
- 865 views
-
-
This is my site: http://lab.gezerweb.com/Resturant/ It works great for some reason in internet explorer (10 at least) it's loading like an iphone... Any suggestion? Thanks.
-
- 7 replies
- 1k views
-
-
Hey! I have created some code, so when I click on an image with the id="preview1" a div with the id="preview1info" will appear, now that would according to plan. But where I am struggling is how would I get the 'preview1info' div to disappear when clicked on? here's the code - <img src="images/preview.png" alt="preview image" id="preview1"> <div id="preview1info"> </div> <script type="text/javascript"> $('#preview1info').hide(); // Initially hide info $('#preview1').click(function() { // Show on click $(this).next('#preview1info').fadeIn(); }); </script> Thanks in advance
- 4 replies
- 891 views
-
Hi everyone, I am self teaching web development and design, and really enjoying it, was has really helped it working on a project to use to learn, but I've come to a stumbling block. After a lot of googling and no avail I think it's down to not knowing what to call it, so maybe you guys can help. How can I make a sort of page pop up within a web page from clicking a link. I want to do my about me page and contact page but I am trying to avoid moving to a separate page but I don't want a separate page. I thought of this and seen it before but can't find out how to do it. Thanks in advance. Robert Hill
- 16 replies
- 2.1k views
-
Hi, me again. Just wondering if anyone could enlighten me on how to have an mp3 playing in an HTML page with no controls? Cheers, Al. Oh an also if there is some sort of Wordpress plugin.
- 4 replies
- 907 views
-
Currently i've come across the problem of updating static content quite a lot. This is mostly due to our in office designer having a different 'taste' every now and then or coming up with different design schemes or whatever reason he wants to change some of our current designs. If you cache your static resources it can be quite annoying when your boss complains about the site not looking good because he has cached versions of the static files and hasn't full refreshed to see the site actually looks fine. My solution was to simply sha1_file() the actual static file and append it unto a query string for that specific static file. So I have requests that com…
- 1 reply
- 1.1k views
-
When I paste the HTML code in eBay, every time that there is shift+enter, they add a lot of space at the next sentence. How do I set paragraph settings to change it with no space? I attached a picture as an example. And here is the code: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <style type="text/css"> @charset "utf-8"; .main1 { font-family: "Arial Black", Gadget, sans-serif; font-size: 14px; font-style: normal; height: 2500px; width: 1170px; margin-right: auto; margin-left: auto; position: relative; } .mainheader { font-f…
- 7 replies
- 886 views
-
Hello everyone, I could do with a little help. I am having trouble getting "Testimonials" menu at the top of the page (White Text) to move to that section on the web page. I have uploaded the files below. If anyone as any spare time to check, I would be over very grateful. Thanks in advance. David index.html
- 2 replies
- 876 views
-
Hi guys, Just trying some different fonts out. I've noticed some of the Google Fonts are not as crisp as fonts on my PC. Anyone know of a reason for this, or even better a remedy?? I want to stick to Google fonts to make sure my site appears the same on everyones computer. Thanks !
-
I need to host just 5 templates for now. Where is a good place to upload them?
-
Hi guys. I need a little help. I can't seem to get rid of the border of this table at the bottom of this page. Any suggestions would be appreciated. Thank you http://www.englishclick.net/index.html -Ian
-
Want to load page dynamically without page refresh like this site http://www.vizio.com/m-series/overview. If you click the features, gallery link it gets slide left and new page load dynamically. Is there is any plugin to do that..?
-
- 1 reply
- 5k views
-
-
Hi there, I don't really use an iPad so not come across this problem before. When accessing a website on the iPad, pages that load fine on other devices and browsers, displays a "The URL can't be shown" error. Has anyone come across this before and know of a fix? Thanks in advance :-) URL is http://compass-pools.co.uk/
-
- 6 replies
- 1.2k views
-
-
Hey there, I've been trying to build a wordpress site from scratch with a simple grid taken from treehouse. I want to have a vertical "header", so a sidebar that contains the nav-bar and so on. Yet I'm not successful in achieving the "header" to get 100% of the height of the site. I've put the container to 100% height and also the grid-3 class, which both hold the "header" Here's the css for the "header" or "sidebar". header { width: 23.5%; /*235px*/ max-width: 235px; height: 100%; background-color: #f7d846; padding-top:80px; padding-left:0px; float: left; } Here's also a link to the page, http://marielaveau.se/wordpress/testar/ . As you se the yellow head…
- 1 reply
- 3k views
-
Post removed
- 5 replies
- 882 views
-
Hello everybody, I'm not sure exactly where to put my question so I decided to post it at this section since my email has got to do with a email template that is consisted of CSS, HTML etc. I managed to find a free email template, tweaked it and decided to use it for my emailer. However, upon testing it, I discovered that the picture doesn't show up. Can I know is it because I'm using jpeg instead of png. And another thing is that it ended up in my spam folder in my yahoo mail. How can I stop my email from ending up at my email recipients' spam folder ? Hope to hear some advice out there. Thanks again.
-
- 2 replies
- 882 views
-
-
Hi, I'm building a WordPress based website with a custom homepage slider. Is there a script that will not load the JS for the slider unless the screen size is at least tablet sized? Even possibly, to not load the HTML/Images also? Thanks, Huw
- 1 reply
- 875 views
-
Can somebody take a look at 'link removed' on an iPhone (or any phone for that matter) and click on the thumbnails. Does the page shrink when you do this? Any ideas on fixing this? Sure it's something REALLY stupid... Edit: Not to worry, fixed it. I was declaring the incorrect viewport tag!
-
- 0 replies
- 867 views
-
-
Hey guys, working my new site and creating it to be some what responsive. Im using masonry for some image database results but the images are not reponsive once using masonry to arrange them. Although i have a 100% width container, i am also left with a gap at the right hand side of the container after giving the images a 25% size. Any help on masonry for responsive design? Currently the site it local, but i can upload if people need to see a working site. http://www.buildsanctuary.com
-
- 3 replies
- 874 views
-
-
Hey guys, I was wondering how I would make a div be the height of the internet page.. would I simply put - height: 100%; or do I need to do something else? Thanks in advance.
-
- 3 replies
- 863 views
-
-
Hi, I'm after some advice about the best way to implement customer testimonials into a site, whether it be a third party service that allows embedding or something I can integrate directly into the site. I would like the option of a customer leaving a review and the site showing all the latest reviews. This is the first time I will be creating a site which would incorporate this so some advice would be great, thanks.
- 8 replies
- 2.5k views
-
I have created a few websites now, just mess around really for practice. The sites I have built though, have purely been HTML/CSS. I want to start making the sites I create dynamic though, not just static. So I have started learning all of JavaScript, jQuery and PHP. Also my friend has asked me to build him a Wordpress theme and from what I have gathered so far you need some understanding of PHP to do so. What do you recommend learning? Also do I NEED to learn JavaScript before jQuery or can I cope with just knowing minimal JavaScript?
-
- 6 replies
- 893 views
-
-
Hi guys. I'm new here, and also new to building websites. I am looking to build a website that is a full black background and just say We Are Coming in big white writing, however i have put some code in to get the lettering to be big (72px) and im just getting a blank screen. <style type="text/css"> body { font-family: Georgia, times, serif; font-size: 72px; } <body> <p> We Are Coming</p> </body> </html> that is the code, could someone tell me why its not working? thanks
- 5 replies
- 878 views
-
Hello, I want the text to stay in that grey box any idea why its not doing that? #content{ margin: 0 auto; width: 950px; padding: 15px; background:none repeat scroll 0 0 #CCC; } .content_left{ float: left; width: 640px; } <div id="content"> <section> <div class="content_left"> <p>This is a test to see if this works </p> <p>This is a test to see if this works </p> <p>This is a test to see if this works </p> </div> </section> <aside></aside> </div>
-
- 5 replies
- 896 views
-
-
div#content { position:absolute; top:10%; left:10%; min-height:87%; width:79.7%; display:inline-block; text-align:left; padding-left:0.3%; } div#menu { position:absolute; top:10%; left:0%; min-height:87%; width:10%; } div#menu ul { width:100%; } div#news { position:absolute; top:10%; left:90%; min-height:87%; width:9.7%; text-align:left; padding-left:0.3%; } div#footer { position:absolute; top:97%; left:0%; height:3%; width:100%; text-align:center; } How can I prevent that text from div content and div footer overlapps each other if I zoom in?
-
- 4 replies
- 1.4k views
-
-
As Flickr now gives an amzing 1TB of space I have started to upload photos to use across my website and social media sites. I would really like to have a photo gallery like the on already one my site: http://www.mpeople-heathersmall.co.uk/photo-gallery/4563007882 which uses the images and gallery feature already on the webeden site software. Is there a widget or code that would allow me to use the Flickr photos in a similar style? Graham
-
- 0 replies
- 1.7k views
-
-
Just an odd thing here. I don't know if my contact page form is having an issue or not. When I test it (in all major browsers), it woks fine. When I comb over the code, it looks fine. Yet, I sometes get emailed from this form, where the text fields are blank. This is a problem of course, because I don't know if it is a legitimate client (or prospective client) trying to reach me...or if it is a weird server issue or maybe even bad code somewhere. I thought it may be spambots, but if that were the case, then I should at least get some text in the email responses. I've been trying to figure this out for hours (spanning several days). Sometimes it's best to have fresh …
- 4 replies
- 894 views
-
Hey folks, I need a fresh pair of eyes to help me out cause I am actually starting to go insane :-/ I am trying to style the search bar and apply a bottom margin without success. When I look in Firefox it looks like the widget box below is overlapping the search bar but I can't figure out why. Could someone be kind enough to help me out, website address is http://charlyanderson.co.uk/new-website/ and it's the blog section. The website is under construction so please excuse my working progress!
- 3 replies
- 1.1k views
-
I am building my first responsive layout for company. I use html5Boilerplate. I noticed that in this layout there is only modernizr. I simply want to support new html5 tag like section etc in old browsers. What is better choice html5shive or modernizr? Maybe html5shive now start to be old script and i shouldn't use it?
- 17 replies
- 3.2k views
-
CSS resets are very popular tools to get a uniform design in all browsers but I'm wondering why all the CSS resets are so specific? this example is from Eric Meyers CSS Reset html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin:…
- 7 replies
- 986 views
-
Hello I am using amazium framework and not a single dropdown menu i tried is working, i somehow managed to debugg some menus but some are just killing me. I need your help CSS: nav.main-menu{ width:100%; margin:0 auto; padding-bottom:6px;} /* menu */ .sf-menu, .sf-menu * {margin:0;padding:0;list-style:none;} .sf-menu li {float:left; position:relative; padding-left:1px; text-transform:uppercase; font:11px/15px Arial, Helvetica, sans-serif;} .sf-menu li:first-child{ background:none; padding-left:0;} .sf-menu li a {display:block;background:#1f2025; width:131px; padding:19px 0 18px; text-align:center; color:#eaeaea; position:relative; overflow:hidden;-webkit-trans…
-
- 5 replies
- 1.3k views
-
-
URL: http://www.woundlife.com/aug2013/worldnews/eng-GB/ Please click the purple arrow on the page above. In the pop up you will see a URL - I can't open this because when I click it it closes the modal window. How do I fix this? Thanks guys!
- 3 replies
- 879 views
-
Hey, I am trying to create my website, just messing around with different skills I have picked up and learnt over my college courses. I am stuck at trying to get them to look the same on all browsers, for example - firefox and chromium! When I coded my website, I used percentages to make it flexible, viewing it on firefox it looked fine and was perfect. Then I went onto chromium and noticed that the percentages didn't work the same way and were way off scale. Is there anyway I could fix this? ( I did find a way around but I don't think it is the proper way, just want to ask someone who knows how to do it properly ) This is the way - /* http://meyerweb.co…
- 5 replies
- 902 views
-
Hey I am trying to get a down arrow appear like the one at http://ideaware.co/ where it says 'Learn more' Iv never used sprites before. Where do i get it from and how do I get it to work?
-
- 2 replies
- 883 views
-
-
Hello, just designing a login form but having issues when down sizing the screen. So it looks like the text inputs fill the container div 100% as asked. Yet when the page is scaled down (ipad testing etc) they stretch out of the div and go longer meaning they are not centred any more. The two buttons in the same div are floated left and right and always stay within the container and stay centered... any ideas? Heres a link: http://buildsanctuary.com/test.php css: #logincontainer {width: 80%; padding: 10%;} #loginform {width: 100%; height: auto;} .logininput { border-radius: 0px; width: 100%; border:0px solid #ccc; background-color:#333; c…
-
- 2 replies
- 869 views
-
-
Hi! I'm new with jquery and I'm using the localscroll plugin for my website. I'd like to know what does it mean the value 800 in this code: $(document).ready(function(){ $('#navi').localScroll(800); Thank you!
-
- 3 replies
- 1.1k views
-
-
Hi all. Ok I'm not too good with forms and have been asked to look at one on a Wordpress site. This is what I have: <form id="top-search-form" method="POST" action=""> <input type="hidden" id="Submit" name="Submit" value="" /> <input type="hidden" id="CountryChoice" name="CountryChoice" value="Ireland" /> <input type="hidden" id="Currency" name="Currency" value="EUR" /> <input type="hidden" id="selDay" name="selDay" value='' /> <input type="hidden" id="selMonth" name="selMonth" value='' /> <input type="hidden" id="selYear" name="selYear" value='' /> …
-
- 6 replies
- 898 views
-