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
-
I am making a web page at the moment and have a background-image property set with an image I made in PS. The image is set at a fixed width and height. The pages on the website have varying levels of content so the main body of the background needs to adjust in size to complement this. I'm guessing this is done through a fluid background layout but I can't seem to figure out how to implement this with my existing image. Any advice? EDIT: I am open to dumping the image and starting from scratch. I don't think my original post made that clear.
-
- 7 replies
- 1.9k views
-
-
Hey, I am playing around with some javascript stuff in "Javascript the definitive guide" and I have this little piece of code : <script> function find_browser_size() { var elt = document.getElementById('results_div'); var cords = elt.getBoundingClientRect(); var findWidth = cords.width; var findHeight = cords.height; document.write('the current width of the div is:' + findWidth + ' pixels wide.' +'<br/>'); document.write('the current height of the div is:' + findHeight + ' pixels high.'); } find_browser_size(); </script> All it is doing if finding the size of the window and outputting the r…
- 4 replies
- 931 views
-
So my splash page where people choose red/blue has a few problems wich I cant seem to figure out. www.samoy.com In Google Chrome everything looks spot on, perfect. In Internet Explorer the orbs (buttons) are square instaed of round, the header text is way bigger to. And in both I can't align the 2 orbs in the center (can see this when you resize the window). I imagine its simple css tricks but I'm stuck after few hours, ive checked W3 schools and ran the validators but I dont get much wiser from the css one.. I would love any help on this one. Thanks in advance, Varo
- 1 reply
- 966 views
-
Hi this is my first time on the forum, hopefully I haven't done it wrong :E I have found that this script is causing me problems - it seems to work fine under Firefox, Chrome, Opera, but when I launch Firebug, then refresh the page, I get hangs. The debugging/error reporting doesn't help me much. Is it possible that the Math.random usage is crashing it? I have isolated the crash down to the following script. This can be saved as a html file, you need to supply a png image, preferebly with some transparency (I would supply one but I don't want to link to a clients unreleased files - heres a random smiley face http://www.wpclipart...miley_large.png) It nee…
-
- 1 reply
- 871 views
-
-
Hello All, I am new to web design and I am playing with some new designs. I have been searching for new tutorials and customizing them to what I want. I am playing around with this fluid layout: http://matthewjamest...ct-3-column.htm I would like to add this verical accordion menu to the left column of the layout: http://webdesign.tut...e-css3-version/ I can't seem to get the accordion to work. I put the menu in the "col2" div and the html shows up along with some of the styling but not accordion effect. I would be appreciative is anyone has any tips or direction they could share. Thanks!
-
- 3 replies
- 6.3k views
-
-
Hi Guys! Under the image on this page (http://store.luof.co.../10019c.jpg.php), I want to be able to change the line height. Tried firebugging it, to no avail. Any ideas how to change this? Thanks! Edit: Only editing this site for the customer, not me who coded it at all! ¬_¬
- 3 replies
- 913 views
-
Its bigger in firefox and opera than in chrome and IE. Is there a way to make it consistent?
-
- 5 replies
- 899 views
-
-
Hi Guys, I'm not sure what the method is called for this I've seen it a few times and finally I have a reason to use it . Here is an example, scroll down a bit and you'll see that a fixed position header pops up. http://www.freelancer.com Not knowing to how to describe this feature I had no idea how to google for it. I look forward to your response. Luke
-
- 1 reply
- 867 views
-
-
How would I go about making the scrolling 'current news' thing that is on this website, it's just below the search for a course section menu. http://www.whatuni.com/ it's really simple as well - just want the simplest way.
-
- 1 reply
- 871 views
-
-
Hi Everyone. This is my first web design I want you to help me improve that by your comments Tanx
- 2 replies
- 873 views
-
Hi, This may be in the wrong topic section! Anyway, when I put www.tragicclothing.co.uk into the browser it goes crazy?? How do you fix so it just goes to the homepage? Thanks Max Mitchell
-
- 6 replies
- 887 views
-
-
so i've been tweaking my website here and there and i must of changed something by accident because now my right-arrow on the image slider is not positioned correctly.. i dont understand what it was because i didn't touch any of the css/html coding for the slider.. also strangely enough, if u resize the browser then return to fullscreen, it is positioned correctly. anyone know how to get it back to the edge of the photo? url: http://thoroprod.com
-
- 2 replies
- 881 views
-
-
I have created a very basic theme in WordPress for a future blog. Before I start to develop the theme any further I want to make it fully responsive. At the moment the theme is responsive. However, its not 'fully' responsive and only changes layout at the exact break points set in the media queries. My test blog: http://www.blog.craigbibby.com/ How I want my blog to behave: http://viljamis.com/blog/ I'm brand new to WordPress and RWD and don't really know where to take it from here. As always, grateful of any suggestions. Thanks.
-
- 2 replies
- 880 views
-
-
Hi everyone, need some help if u can... im currently designing a website for a hotel. I have a 'special offers' page and im trying to call the latest offer and show it on the home page. The script below is pulling every offer and i cant work out how to only pull the 'first' element. Home page - http://garracktemp.c....com/index.html Offers page - http://garracktemp.c...ial-offers.html $(document).ready(function(){ $('#test').load('/Garrack_Hotel/special-offers.html .offer_info_content', '', function(response, status, xhr) { if (status == 'error') { var msg = "Sorry but there was an error: "; $(".content").html(msg + xhr.status + " " + xhr.st…
- 9 replies
- 1.1k views
-
Hi, I would like to implement this website into a more simple and accessible html5 website: link 1) http://multiskillz.tekcities.com/ I would like to implement the same design or something close and as for now I get to this: link 2) http://multiskills.freehosting.com/ I don't know if it's too much to ask for but I would like in link 1 to be the same in 2 for the 3 panels using simple html5 properties... like header, content, aside and footer Regards, Pascal
-
- 2 replies
- 878 views
-
-
The title pretty much sums it up: I need the following form to be posted WITHOUT the page scrolling back to the top. I suppose I need some ajax/jquery, but I've never really worked with either, so I need some help! <form method="post" action="" class="kat" name="kat"> <select class="search2" name="kategori_id" id="kat"> <option selected>Anbefal til...</option> <option value="$cat[id]" id="$cat[id]">$cat[kategori] ($assigns)</option> // some PHP-code has been removed... </select> <input type="hidden" name="sang_id" value="<?php echo $id; ?>"> <input type="submit" class="button" name="kat" value="Anbefal" /…
-
- 2 replies
- 1.8k views
-
-
Not sure if this is the right place, but seems most logical. Do any of you use boilerplates if so any suggestions? I had a look at html5 one, but not sure about it. I've read about skeleton too any good?
-
Hello everyone, I need to create an accordion on my websites homepage. I have looked around at plugins and open source scripts and there do seem to be quite a few options but all have slight issues with regards to what I'd like to achieve. Here is a link to what I need to create. http://www.jackod.com/ofato_blog/Picture%2011.png Does anyone know of anyone good ways to achieve this or have any links to decent plugins? Thanks so much in advance. Regards Jack
-
- 5 replies
- 1k views
-
-
Hi guys, New to the forums..been Googling for a while to find a community of developers. Would love a bit of help please, I am creating a HTML login that uses Javascript to check both fields are filled out. It also does some fancy animations that bring up loading screens etc.. What I need to do, in a function..is go to a .php file that checks the credentials against my MySQL database. Now, I can do the PHP bit plus the Javascript is working. But how in the world do I make Javascript connect to the file and then retreive the answer. Ending up by logging in and moving to another page, or displaying an error with another Javascript function. Have google…
-
- 6 replies
- 1.3k views
-
-
Hello I have included a html file of a website I am working on, I have not used any generated code it is just done by hand. The problem is that when I try to position a new DIV under the header DIV with navigation in it will not let me add a margin to it. I believe this is something to do with the the float attribute and would like some help. To me the code looks clean but maybe it isn't.noiseshed.html
-
- 5 replies
- 860 views
-
-
http://www.mangofundraising.com/ Any idea why the footer on the homepage of this site is ok in Safari and not in Firefox? Thanks
-
- 13 replies
- 1.5k views
-
-
Hi, I'm trying to understand why there's an inconsistency in the div positioning/width on my site. Here's the link: (Link removed) When you click on the first of the individual galleries (Link removed), the white div that appears takes up the same width as the two divs on the index page (likewise the box on the "contact me" page is the same width), however, when you click on one of the galleries with lots of images (like the second-to-last one or (Link removed), the div, which is just the same html and css, appears wider. This happens in Firefox, Chrome and Opera (probably in the other browsers too, but those are the only ones I have installed). I'd really like to know w…
-
- 4 replies
- 897 views
-
-
This is my first post on this forum so I hope I've chosen the right place for it. Have spent the past few years doing microsites in Flash, basically adapting printed booklets to an interactive format for use online. All sites have to have voiceover narration, all the text is read out loud. There's some animation but it's fairly basic, just builds and fade-ins and outs. These are information sites commissioned by government departments so SEO, marketing, google rankins, etc. are all irrelevant. Flash has worked very well because I can use any font (they like certain fonts with certain characteristics like the small 'a' in Futura), they work on every browser and eve…
-
- 1 reply
- 1.1k views
-
-
I'm working on a fluid layout with an aim to use on different mobile devices eventually. The layout is working nicely but I can't get the navigation to center. Can anyone tell me how to fix this? Attached are the html and css files. layout.css layout.html
-
- 5 replies
- 2.4k views
-
-
Hi Guys, Could someone explain to me why when putting <p></p> inside a div, this causes the paragraph to drop down a line, usually lower than intended? Is it best practice, when putting text inside a div, to enclose the text within <p> tags? Please see attached example. With <p> tags Without <p> tags Thanks in advance.
-
- 11 replies
- 1.9k views
-
-
Hi all, My customer would like to have their website open full screen, orginially they wanted it full screen onload but I managed to convince them having it onclick would be a better approach. The website is www.domvslondon.com, I need to find a solution that opens full screen (F11) when the splash screen logo is clicked. I've found plenty of scripts that will make that page go full screen, but I'm really looking for it to go to the next (home) page at the same time.... Does anyone know if there are scripts to do this? It seems like I need to be using HTML5 as none of the old school scripts seem to work anymore (browser security?), not too worried about IE a…
-
- 4 replies
- 912 views
-
-
- design
- coding links
- div
- ta
-
Tagged with:
I have 3 links and each link is to be assigned it own div. now below these links I designed these divs and floated them to the left. I set an outer wrapper to make overflow hidden and now the 3 divs are one near the other but only one div is visible at a time. Now using these links I want to change from div to another every time a link is clicked. How can I achieve this? I don't want any sliding effect, I just want the assigned div to immediately show up, covering the previous one, when a link is clicked. In other words I want to switch between divs through particular links. Please help!!! Kinda tired looking for a solution.
-
- 1 reply
- 4.1k views
-
I downloaded a template website which I have been converting for my needs, but as with everything I would like to pull it a little more one way that it was designed for, but nothing too daring. You'll see from "My Portfiolio Two" (April 2012) (website: http://www.css3templates.co.uk/templates.html) that imagery loads on the left side in a cycle and then you have your text on the right hand side, what I would like to do is keep the cycle but take control of a certain image by hovering over a hyperlink e.g. the imagery is cycling through but when I hover over a link the image stays on a particular one until I remove it (or hover over another link), simple really. I'd al…
-
- 0 replies
- 1k views
-
-
Hi, I'm working to a site, and I need Javascript like this: http://jsfiddle.net/EVFEC/ NOT jQuery. For apply on this html code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- saved from url=(0014)about:internet --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>rolloevertest</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--Fireworks CS3 Dreamweaver CS3 target. Created Tue Sep 04 23:05:58 GMT+0300 2012--> </head> <body bgcolor="#ffffff"> &…
-
- 0 replies
- 892 views
-
-
I've built this charity website for a friend using a simple CMS. I have one annoying glitch on my <a> tag inside my main nav. The links style perfectly on rollover with a different bg color for each. But when you select and go into a nav item the text goes to a dark grey? it should be white (like the rollover). eg. click into the "get involved" page and you'll notice "get involved" is now a dark grey instead of white. why does this happen? I've tried being specific with the CSS right down to the link but nothing gives
-
- 4 replies
- 1.3k views
-
-
I am using the following css to make a horizontal divider line on my website:- .divider { width:100%; height:1px; background-color:#000; float:left;} Only problem is, when I use this class in different areas on the same page, some lines are appearing thicker than others. Can anyone advise me why this happens?
-
- 7 replies
- 885 views
-
-
Hi Guys I hope you can help, please forgive my noobness. I have a webhost and I really want to build up some experience in web design. I have dabbled a little with Wordpress and Joomla but I don't like the fact that I am constrained by using other peoples templates. I know I have the option design my own template but I really don't want to use up a great deal of my time learning how to do it. I am slowly getting a handle on using HTML and CSS and would prefer to design my site from scratch, but I have a few questions. I have had a good search around on the net but not turned up anything concrete which answers them. I would like to write my own individ…
-
- 3 replies
- 877 views
-
-
Hi i send a newsletter, and for it to be as good as possible, i made it pass through a spam assassin checker. however the result i was told is that to optimise the spam score, i have to remove the brackets around the font name in <font face="verdana"> , and indeed, when i replaced it with <font face=verdana> my score was better. i think W3C recommends to leave the brackets but what do you think ?
-
- 3 replies
- 1.2k views
-
-
I'm not entirely sure what I'm missing here, must be something I'm not doing correctly as I can't for the life of me get this to work. I have a speech bubble div that I'd like to fadeOut when a text area near to it is focused. Am using the following script, which to the best of my knowledge is linked correctly and should work. http://www.jamesperrett.co.uk/testsite/js/fadediv.js $("#message").focus(function() { $("#bubble").fadeOut(); }).blur(function() { $("#bubble").fadeIn(); }) I just can't seem to get it right, no idea what's up. Can anyone help? It's the bubble at the bottom of the contact form and the textarea message should trigger t…
-
- 2 replies
- 883 views
-
-
Hello This pradeep ssendhav working as web designer in Indore i have made web for my client using jquiry but since one month i am getting virus (malware in js file) in my website and google have blocked my website can any body help me for same,
-
- 1 reply
- 879 views
-
-
Hi, I'm trying to fix a website which exhibits some very strange behaviour. A significant portion of users (20% or so) are reporting a very slow download speed from this site, 100 times below the norm for their connection. It seems to be related to their ISP and our website. The website in question is www.superpea.com. The website is hosted on server: Microsoft Windows Server 2003 RD on Rackspace's cloud and uses Apache. I happen to have 2 connections with different ISPs installed here, and one of them connects to the website just fine (vodafone) while the other exhibits the super slow download speed (Linkem). Both connections work fine in normal circumst…
-
- 6 replies
- 884 views
-
-
Hi, I'm having problems with my GZIP file. I downloaded it from another website I created and where it works, however this time it doesn't. They are both on Heart Internet, and both on a Linux server. I am uploading it using the Binary Mode. Is there something I'm missing? # BEGIN GZIP <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </ifmodule> # END GZIP Thank you.
-
- 1 reply
- 983 views
-
-
Hello there, I have a site where i want my login form to be a pop up. i got a javascipt i like but am having problem editing it. The code is as below <script> $(function() { // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore! $( "#dialog:ui-dialog" ).dialog( "destroy" ); var email = $( "#email" ), password = $( "#password" ), allFields = $( [] ).add( email ).add( password ), tips = $( ".validateTips" ); function updateTips( t ) { tips .text( t ) .addClass( "ui-state-highlight" ); setTimeout(function() { tips.removeClass( "ui-state-highlight", 1500 ); }, 500 ); } function checkLength( o, n, min, max ) { if ( o.va…
-
- 0 replies
- 1.2k views
-
-
Hello People, Am having problem with internet explorer. I have code a function as below to be used as buttons on my website, every other browsers are displaying it well except Internet Explorer pls what do i do? My CSS is as below td .a{ color:#FFFFFF; font-weight:bold; background: #111; background: -moz-linear-gradient(#FF0000, #DE1F15); background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #111),color-stop(1, #444)); background: -webkit-linear-gradient(#FF0000, #DE1F15); background: -o-linear-gradient(#FF0000, #DE1F15); background: -ms-linear-gradient(#FF0000, #DE1F15); background: linear-gradient(#FF0000, #DE1F15); -moz-border-radius: 10p…
-
- 3 replies
- 893 views
-
-
Hi everyone i am new to the forums and i have a question. I am new to webdesign i know the basics css, html etc. i am trying to create a website similar to the huffington post This is how it looks like so far, i am happy with the layout http://worldtimes.comoj.com/test2/ This is the link ok so my question is how do i make the coluns content please help ?
-
- 8 replies
- 976 views
-
-
Hi, I made this website, but only the top corners of the posted photos are rounded instead of all corners. (In Firefox) I tried some things but without success.. does anybody has an idea about this? Thanks!
-
- 5 replies
- 903 views
-
-
Hello, I am trying to develop a fan page for facebook. I have placed the code on my website hosting server and trying to open it in iframe on facebook page. my page code contains jquery script as i am using some jquery functions on my page while rendering. I am using a slideshow and a CSS3 and Jquery based photo stack. I am facing problem with Photo Stack. its not loading where as slideshow is running properly. Any suggestions?
-
- 1 reply
- 1.1k views
-
-
Hi guys, first post but not the last I'm sure... I'm designing a small site for practice and am having real trouble with some positioning... files: https://dl.dropbox.com/u/28823038/VYKA.rar The page is exactly how I want it (for now) except the logo, nav and social icons should be overlaid on top of the image. Instead they've created their own area on top of the image. I've tried every combination of positioning I can think of but no luck. I came really close and got the image flush to the top and the logo and nav on top, but then couldn't get the social icons to float right. I'm really stuck so any help you can offer would be GREATLY appreciated. Many tha…
-
- 3 replies
- 898 views
-
-
I have a website that has some changing images on one page using the Javascript below, I have not added the complete page, mainly the Javascript between the yellow highlight. The area in red is what I am trying to adapt. I am trying to allow visitors to click on a page to target them to a specific website or webpage. It's been a long time since I have used Javascript, so help welcome. LIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <!--[if IE]> <style type="text/css"> li a {width: 100%;} </style> <![endif]--> &…
-
- 0 replies
- 1k views
-
-
I am in the process of designing a website. I want to keep the website design static but have to alternate css files for different browsers. If I stick to the 960px my website looks tiny in any larger screens so I want to make an alternate css file to widen the site for larger resolutions. Is this possible, has anyone got any tips or advice? I have heard of fluid websites but I am not ready to go down that route yet and would like to keep the page static Thanks in advance
-
- 3 replies
- 862 views
-
-
Hello All, could someone advise me on a method of highlighting all the divisions within a page containing the same CSS class name. Preferably on hover which I guess equates to mouseover in javascript. Changing the background color would be ideal but applying a border would also work for me. Thanking you in anticipation. Jim
- 13 replies
- 3.3k views
-
I want to create a basic contact form that will post directly to an email without having to use php, can this be done? I can create a form but it always directs me to outlook, is there a way to avoid this? Cheers
-
- 6 replies
- 3.3k views
-
-
I want my headings to be positioned where they are at current and my paragraphs to go beneath but for some reason the paragraph wraps around the heading its a little bit strange, am not sure why, the address is http://www.graham-cherrie-butcher.com/aboutus.html Can anyone help?
-
- 3 replies
- 870 views
-
-
Hi, Is there a way to relocate a div using JS, in order to have the most relevant copy in the HTML further up the page. But having the flexibility to display the same copy where ever you like, when it comes to what the end user sees? ie... HTML: <div id="three">Three</div> <div id="one">One</div> <div id="two">Two</div> Browser: One Two Three Thanks.
-
- 38 replies
- 2.9k views
-
-
Hi guys, totally new here! Although i wish i found you lot earlier! Im working on a project which is work related and i have this really good idea but i just cant seem to find the way to implement it, so im hoping some one can point me in right direction! Basically, my team will be using this webpage for work and i have made it customisable, so they are able to move things around the page, and also change colours and names of the boxes that are being displayed on the page... However my next hurdle is, how do I save the layout / configuration that the user has set for the page? So each time they come back its exactly how they left it, which assuming, will be t…
-
- 7 replies
- 4.9k views
-