-
Just a quicky, site looks strange on Ipad?
the inline styling is coming from http://www.wickfordcarandvanrental.com/js/theme.js round about line: 214 logo .css("height", "auto") .css("width", "auto"); Cant see any reason why you shouldn't be able to remove it
-
Max width/Min width issues on inline-block elements
Thanks for the tips and pointers both of you! You've given me a good place to start from I wasnt aware of the gap made by inline-blocks so glad you saved me a headache there before i got to that point!
-
-
-
Max width/Min width issues on inline-block elements
Hey all I seem to be having some trouble using max-width/min-width on a couple of inline block elements not sure if i'm trying to do something that isnt actually possible or that i'm just approachingh it in the wrong way - hopefully someone here maybe able to help Basically I have a a content div floated left with a max-width and min-width assigned to it and set it to display:inline-block. Most of the time the element should be max width with an aside to the right of it. The aside also has a max-width and min-width with a display:inline-block Sometimes the aside will have an oversized div included and I want the content to resize down to allow them to still sit side by side however both elements take on max-width and will not sit nicely together... example: <!doctype html> <html lang="en-gb"> <head> <style> section{ width:100%; color:white; } .contents{ display:inline-block; min-width:45vw; max-width:65vw; background-color: red; float:left; } aside{ display:inline-block; min-width:30vw; max-width:45vw; background-color: blue; } .normal{ width:25vw; } .large{ width:25vw; } </style> </head> <body> <section> <article> <div class="contents"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris suscipit viverra turpis non tincidunt. Quisque dictum sapien vitae nulla consequat scelerisque. Maecenas ac vestibulum tortor. Nunc mattis turpis a elit viverra cursus. Duis a purus dolor. Integer vel elementum augue. Integer et egestas leo, ut vestibulum quam. Suspendisse nec pulvinar lorem. Donec sed eleifend elit. Pellentesque ut congue dui, quis malesuada elit.</p> <p>In sed fermentum nibh, a varius leo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nullam ultrices hendrerit arcu, at suscipit nisi. Pellentesque eget mi vitae ante facilisis hendrerit. Aenean ut pellentesque felis. Pellentesque ullamcorper dictum leo sed interdum. Morbi mollis pretium interdum. Suspendisse euismod non sem quis sagittis. Mauris ac lorem velit.</p> <p>Quisque iaculis fringilla nunc, in convallis lacus mattis eu. Nunc vestibulum venenatis lectus, a fermentum lorem suscipit quis. Nulla ut malesuada ante, porta sagittis dui. Etiam auctor, nisi ac ultricies eleifend, sapien tortor commodo diam, sed tempus lectus ipsum vel velit. Curabitur sed lectus massa. Phasellus accumsan libero non laoreet semper. Phasellus vel velit facilisis justo vestibulum ullamcorper quis ut tellus. Nunc consectetur diam felis, ac placerat metus ullamcorper a. Donec sollicitudin eros eget nunc scelerisque, vitae auctor leo tincidunt. In hac habitasse platea dictumst. Suspendisse luctus imperdiet neque sit amet adipiscing. Donec quis dignissim neque. Morbi in est nec lectus congue bibendum a luctus turpis. Morbi vel risus lorem. Morbi imperdiet nec urna id faucibus. Nullam pulvinar, risus id pellentesque luctus, purus enim bibendum lacus, eget placerat justo nisl ut odio.</p> </div> <aside> <div class="normal"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris suscipit viverra turpis non tincidunt. Quisque dictum sapien vitae nulla consequat scelerisque. Maecenas ac vestibulum tortor. Nunc mattis turpis a elit viverra cursus. Duis a purus dolor. Integer vel elementum augue. Integer et egestas leo, ut vestibulum quam. Suspendisse nec pulvinar lorem. Donec sed eleifend elit. Pellentesque ut congue dui, quis malesuada elit.</p> </div> <div class="large"> <p>Quisque iaculis fringilla nunc, in convallis lacus mattis eu. Nunc vestibulum venenatis lectus, a fermentum lorem suscipit quis. Nulla ut malesuada ante, porta sagittis dui. Etiam auctor, nisi ac ultricies eleifend, sapien tortor commodo diam, sed tempus lectus ipsum vel velit. Curabitur sed lectus massa. Phasellus accumsan libero non laoreet semper. Phasellus vel velit facilisis justo vestibulum ullamcorper quis ut tellus. Nunc consectetur diam felis, ac placerat metus ullamcorper a. Donec sollicitudin eros eget nunc scelerisque, vitae auctor leo tincidunt. In hac habitasse platea dictumst. Suspendisse luctus imperdiet neque sit amet adipiscing. Donec quis dignissim neque. Morbi in est nec lectus congue bibendum a luctus turpis. Morbi vel risus lorem. Morbi imperdiet nec urna id faucibus. Nullam pulvinar, risus id pellentesque luctus, purus enim bibendum lacus, eget placerat justo nisl ut odio.</p> </div> </aside> </article> </section> <body> </html> Not sure if i'm approaching this right or whether Friday afternoon brain is stopping me from seeing the obvious but any ideas/help would be great
-
Firefox displaying nav bar incorrectly?
just put up a link on the web for the nav bar Link. Sorry couldnt edit my original post
-
Firefox displaying nav bar incorrectly?
I'm currently making a nav bar using css3 but seem to be coming up against something strange in firefox. Here is the code: HTML: <!DOCTYPE html> <html lang="en"> <head> <title>Page Title</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="css/reset.css" media="screen" /> <link rel="stylesheet" type="text/css" href="css/styles.css" media="screen" /> </head> <body> <div id="mainWrapper"> <nav> <ul> <li class="current"><a href="#Welcome">Welcome</a></li> <li><a href="#Products">Products</a></li> <li><a href="#Contact">Contact</a></li> </ul> </nav> <header> </header> </div> </body> </html> CSS: body {} html {overflow-y:scroll;} /* Firefox hack that forces the sidebar to be always visible */ /* fonts */ body { font-family: 'times new roman'; font-size:1em; color:rgb(64,29,9); line-height:150%; } h1{ font-size:140%; } h2{ font-size:130%; } h3,nav ul li a{ font-size:120%; } h1:first-letter,h2:first-letter,h3:first-letter,nav ul li a:first-letter{ font-size:125%; /*set line height to 0% to hold baseline the same - is this some strange behaviour? Can it be done differently?*/ line-height:0%; } h1,h2,h3,nav ul li a{ font-weight:bold; font-style:italic; letter-spacing:0em; } /* LAYOUT */ #mainWrapper {width:100%; margin:0 auto; text-align:left;} /* nav layout */ nav { line-height:300%; background-color:rgb(64,29,9); -moz-box-shadow: inset 3px 7px 5px rgba(38,18,6,0.2); -webkit-box-shadow: inset 3px 7px 5px rgba(38,18,6,0.2); box-shadow: inner 3px 7px 5px rgba(38,18,6,0.2); border: 1px solid rgb(38,18,6); } nav ul { width:80%; height:48px; overflow:hidden; margin:0 auto; text-align:right; border-right:1px solid rgb(38,16,; -moz-box-shadow: 1px 0px 1px rgba(115,70,31,0.6), inset -1px 1px 1px rgba(38,18,6,0.2); -webkit-box-shadow:1px 0px 1px rgba(115,70,31,0.6), inset -1px 1px 1px rgba(38,18,6,0.2); box-shadow: 1px 0px 1px rgba(115,70,31,0.6), inner -1px 1px 1px rgba(38,18,6,0.2); } nav li{ display:inline-block; padding:0% 2%; margin:0 -0.4% 0 0; border-left: 1px solid rgb(38,18,6); -moz-box-shadow: -1px 0px 1px rgba(38,18,6,0.2), inset 1px 1px 1px rgba(115,70,31,0.6); -webkit-box-shadow:-1px 0px 1px rgba(38,18,6,0.2), inset 1px 1px 1px rgba(115,70,31,0.6); box-shadow: -1px 0px 1px rgba(38,18,6,0.2), inner 1px 1px 1px rgba(115,70,31,0.6); } nav li:hover{ -moz-box-shadow: -1px 0px 1px rgba(38,18,6,0.3), inset 1px 1px 25px rgba(115,70,31,0.6); -webkit-box-shadow:-1px 0px 1px rgba(38,18,6,0.3), inset 1px 1px 25px rgba(115,70,31,0.6); box-shadow: -1px 0px 1px rgba(38,18,6,0.3), inner 1px 1px 25px rgba(115,70,31,0.6); } nav li a { display:inline-block; color:rgb(109,66,24); text-shadow:2px 1px 6px rgba(0, 0, 0, 0.5); text-decoration:none; } nav li.current{ -moz-box-shadow: -1px 0px 1px rgba(38,18,6,0.3), inset 1px 1px 100px rgba(115,70,31,0.6); -webkit-box-shadow:-1px 0px 1px rgba(38,18,6,0.3), inset 1px 1px 100px rgba(115,70,31,0.6); box-shadow: -1px 0px 1px rgba(38,18,6,0.3), inner 1px 1px 100px rgba(115,70,31,0.6); } nav li.current a{ text-shadow:-2px -1px 6px rgba(0, 0, 0, 0.5); } It works as I would expect in all browsers except firefox where the nav ul li a:first-letter css seems to cause a strange indent which resets correctly once you have hovered over it. Have I done something to cause this? Is there a way that I can fix it? Thanks Ysuran
-
-
Issue with div alignments and heights
Thanks I was really hoping someone would know some pretty voodoo css magic to make it work but I'm guessing it's because heights are always a nightmare... I think I will use a lttle bit of js to set the heights the way I want them and use the scroll as a fallback. The scrollbar is placed inside the elements so the content div is safe. Thanks again +1
-
Issue with div alignments and heights
I have a page I'm working on which displays numerous divs in a 2 column layout and I'm having problems firstly aligning the rows of divs correctly: Here If I use display:table-row and display:table-cell on the appropriate divs I can get them to align nicely: Here The .staffwrapper divs then have different heights in the same row but I want them to be the same height to stop the strange gaps and to make it look a little prettier! Does anyone know a way I can do that or is this actually tabular data that should be held in a table where I can easily get the layout that I'm looking for?
-
IE6 menu issue
umm shouldn't it be: "/templates/theme501/css/ie6.css" "/css/ie6.css" 404's...
-
Your browser stats?
I guess it all depends on the type of visitor's to the site here are the stats for the school I work at: 1. Internet Explorer 61% 2. Chrome 17% 3. Firefox 9% 4. Safari 8% 5. Ipad 2% IE Breakdown: 1. IE8 45% 2. IE7 27% 3. IE9 26% 4. IE6 1.9% I usually code for Firefox = Latest Chrome = Latest Safari = Latest Opera = Latest Internet Explorer = 7+ I have no choice but to make sure the site is usable in IE7 but if it was as low as 1.2% then I would probably not be quite so worried.
-
Create PDF Link
Sorry I was assuming that you're quote was being held in a form or something similar which you could pass through as variables to the php page that creates the pdf. Glad you found something else that you can use though
-
Create PDF Link
If it needs to be dynamic why dont you create a proper quote pdf using something like fpdf? I cant say I have used it personally but I can imagine it's not going to be all that pretty to write as I think you'll have to position each element as you go but would give a better corporate image than just saving the webpage
-
-
PHP and JQuery
Do you mind sharing how you would do it? The only other way I can see is to add it to the class attribute instead of using an ID but if there is another way I'd love to know. It's always interesting to see how different developers/coders tackle the same problem
-
PHP and JQuery
I guess I should stop posting first thing in the morning before my coffee has kicked in Sorry Looking at it again cant you set an id on the .top_5_image li based on the title (or another unique value) and target that rather than the class? if ($res_comp) { while ($compArray = mysql_fetch_array($res_comp, MYSQL_ASSOC)) { $title=$compArray['title']; $price=$compArray['price']; $picture=$compArray['picture']; ?> <div class="top_5_links"> <? echo " <ul><li class=\"tp_links\"> ".$title."</li></ul>";?> </div> <li class="top_5_image" id="<? echo $title; ?>"> <img src="../images/thumbs_/<? echo $compArray['picture']?> "/> <big style="color:green"> £<? echo "".$price."";?></big> </li> $(".tp_links").click(function(){ $("#<?php echo $title;?>").fadeIn(2000); }); something like that? Also should that element be an li I can't see the <ul> <ol> it is in. Thanks Rallport for pointing this out
-
PHP and JQuery
$('.tp_links').click(function() { $('.top_5_image').fadeIn(2000); }); }); try changing the jquery to target the element rather than the class: $('.tp_llinks').click(function(){ $(this).fadeIn(2000); }); that should only trigger the element thats being clicked
-
-
JS ChildNodes
I knew there must be a reason for it but couldn't find it for looking! Thanks very much +1