-
CSS Horizontal nav bar position help!
I've got myself a nice green nav bar for a webpage im building. However there's a DIV on the page in green that id like this nav bar to fit in... The thing is i cant same to get it to budge at all, even with position fixed... id like it to sit in the DIV ive made thats coloured green.. so i can then move it left right or centre as i need it... using padding thanks for looking... http://connordesign.comyr.com/build/index.html
-
my css nav bar is hiding wont show :(
dont worry i just gave it a z-index lol
-
my css nav bar is hiding wont show :(
Just done myself a spiffing new nav bar in css... and it wont show up.. when u hover gallery or lakes,... there should be a list below them of about 4 or 5 links and they seem to hide behind the fading image... however when i remove the fading image it works.. any ideas... cheers heres the addy http://connordesign.comyr.com/hunter/sample.html
-
Size of a DIV not working :S
Are you saying a margin has over ridden this?
-
Size of a DIV not working :S
Hello all, Ive just finished my layout with the exception of the footer which will include a background set for the div. Its only 6px high and when making this on a seperate webpage it works fine... See code below... <!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=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> .footer { width:854px; height:6px; background-position:center; background-image: url(images/footer.jpg); background-repeat: no-repeat; } </style> </head> <body> <div class="footer"></div> </body> </html> However when i insert this into my webpage i end up with a div cell of approx 19px's :S I dont understand why ive done nothing different. take a look at the code on my page... http://connordesign.comyr.com/ its driving me mental lol
-
How do you make these rollover images into actual links
Just out of interest what is the other way and is it better? If so why.. cheers
-
How do you make these rollover images into actual links
Doesnt matter i figured out what you mean lol Cheers oppo!
-
How do you make these rollover images into actual links
When i remove the div section and replace it with <a class="homeroll" href="http://Google.com">Google</a> all i get is "Google" standard link and no image or rollover... HELP!
-
How do you make these rollover images into actual links
How can i make these buttons into links, Ive got the effect i want but how will i make them into links? Here's the page im talking about. http://connordesign.comyr.com/fresh.html
-
How do i remove links from this onclick code
hi all, ive just found this script and it works well! However i dont want the link function there so can someone please delete what needs deleting so it still works cause when i delete the link parts it stops working... I only want to click a button and an image swops which is what it does. But this code also includes a onclick of the image it opens a URL and i need that part deleting from all images.. Its embeded in the Jscript.. any help will be greatly appreciated! Cheers then <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html> <head xmlns="http://www.w3.org/1999/xhtml"> <title>Js Testing</title> <style type="text/css"> button { border: solid 1px #000000; text-decoration:none; color:#000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; font-weight: normal; font-variant: normal; padding:4px; background-color:#99FF66; float:left; margin-left:5px; margin-top:10px; } button:hover { border: solid 1px #333333; text-decoration:none; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-style: normal; font-weight: normal; font-variant: normal; padding:4px; background-color:#00CC33; float:left; margin-left:5px; margin-top:10px; } </style> </head> <body> <div id="header"> <h1>Javascript Testing</h1> </div> <script type="text/javascript">17.18 /*Image data: src, link */ var data = [ {src: "images/random2.jpg", link: "http://google.com"}, {src: "images/random3.jpg", link: "http://yahoo.com"}, {src: "images/random4.jpg", link: "http://chapo.co.cc"} ]; /* This function will be called when button is clicked.*/ function buttonclick(index) { if(!data[index]) { alert("No data found at index : " + index); return; } var src = data[index].src; var link = data[index].link; var img = document.images.im1; /* Changing image attributes */ img.src = src; img.onclick = function() { window.open(link); };} </script> <div> <img src="images/random1.jpg" name="im1" onclick="window.open('http://google.com')"/><br/> <button onclick="buttonclick(0);">1</button> <button onclick="buttonclick(1);">2</button> <button onclick="buttonclick(2);">3</button> </div> </body> </html>
-
Centre align and V align my text it wont work :(
How can i make these buttons then?
-
Centre align and V align my text it wont work :(
Ok so here goes, ive made myself a nice looking CSS button my text is centre aligned, however it wont seem to align to the midle of the whole box. These are going to be my bottons for my small image gallery. please help <!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> <style type="text/css"> .buttonbox { width:300px; height:30px; text-align:left; } .imagebutton { width:20px; height:30px; background-color:#999999; border:solid 1px #000000; text-align:center; float:left; } .imagebutton:hover { width:20px; height:30px; background-color: #FF0066; border:solid 1px #000000; text-align:center; float:left; } .link2 { text-decoration:none; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; } .link2:hover { text-decoration:none; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; } </style> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>button</title> </head> <body> <div class="buttonbox"> <a href="#" class="link2"> <div class="imagebutton">1</div> </a><a href="#" class="link2"> <div class="imagebutton" style="margin-left:10px">2</div> </a> <a href="#" class="link2"> <div class="imagebutton" style="margin-left:10px">3</div> </a> <a href="#" class="link2"> <div class="imagebutton"style="margin-left:10px">4</div> </a> </div> </body> </html>