-
-
Randomly placing divs/images with CSS
That's brilliant - thank you. It is now displaying perfectly. The only thing is on the other pages the <aside> sidebar I did was no longer floated to the right in line with the column on the left - so to fix this I just added a separate class of .float-left with the element float:left; and then loaded the .float-left with the .column on the other pages that needed it. On the page we had been working on I took out the <aside> bar to have those images in place. Im glad this has been sorted. Thank you so much.
-
Randomly placing divs/images with CSS
Thanks, I have re-uploaded. Just by adding the margin element (as below): .polaroid-one { margin: 20px 0 0 0; width: 150px; padding: 10px 10px 20px 10px; border: 1px solid #BFBFBF; background-color: white; -webkit-box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); -moz-box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); } .polaroid-two { margin: 10px 0 0 0; width: 150px; padding: 10px 10px 20px 10px; border: 1px solid #BFBFBF; background-color: white; -webkit-box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); -moz-box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); } .polaroid-three { margin: 20px 0 0 0; width: 150px; padding: 10px 10px 20px 10px; border: 1px solid #BFBFBF; background-color: white; -webkit-box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); -moz-box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); } The polaroid box goes crazy and ends up to the left of the screen. PS The site isn't CMS driven. I wish I could theme for CMS but that will be for another day
-
Randomly placing divs/images with CSS
Thanks for your help, I removed the float element. I did append (and duplicate) -one -two and -three to the polaroid classes so that I could add the margin element an add different numbers to vary the positioning however it stretched the polaroid an looked odd - presumably because this margin box is the caption border. Any idea's?
-
-
Randomly placing divs/images with CSS
Thanks for the great tip. I have re-uploaded the page with the blue border to outline everything. It is getting there. I want the polaroid images to be slightly lowered so that they are inline with the red subheadings. Is there an easy way to do this - What would be the correct way?
-
Randomly placing divs/images with CSS
Hi Jack, that is exactly what I am after. However, I have edited my markup and slightly altered my CSS to match what is there in that example (as it is exactly that that I want) but the polaroid still doesn't sit to the right of the paragraph text. Any idea's? My markup for each paragraph and polaroid is: <section class="column-content"> <div class="column twelve"> <h2>Products & Prices</h2> <h3>Here is a list of some of my products and prices:</h3> <p>Cupcakes with frosting – £1.30 each (£1.50 with individual handmade toppers) Giant Cupcake with frosting – £40 Plain Iced Loaf Cakes – £6 Plain Iced Mini Cakes (4.5 Inch Double Layer) – £10 8 inch Round Frosted Cake – £16 Single Layer or £20 Double Layer 10 inch Round Frosted Cake – £18 Single Layer or £22 Double Layer 12 inch Round Frosted Cake – £20 Single Layer or £24 Double Layer 10 inch Iced Bundt Cake – £18 12 inch Iced Bundt Cake – £20</p> <h3>Cake Flavours:</h3> <p>Vanilla, Vanilla and Raspberry, Chocolate, Chocolate Orange, Chocolate and Peanut Butter, Chocolate Chip, Mint Chocolate%2
-
Randomly placing divs/images with CSS
Ah, it seems that changing the .column-content { max-width: 700px; } to .column-content { max-width: 900px; } Made everything better I can easily alter and forget widths - this can't be good practise. Hmm.
-
Randomly placing divs/images with CSS
Hi Jack, that is exactly what I am after. However, I have edited my markup and slightly altered my CSS to match what is there in that example (as it is exactly that that I want) but the polaroid still doesn't sit to the right of the paragraph text. Any idea's? My markup for each paragraph and polaroid is: <section class="column-content"> <div class="column twelve"> <h2>Products & Prices</h2> <h3>Here is a list of some of my products and prices:</h3> <p>Cupcakes with frosting – £1.30 each (£1.50 with individual handmade toppers) Giant Cupcake with frosting – £40 Plain Iced Loaf Cakes – £6 Plain Iced Mini Cakes (4.5 Inch Double Layer) – £10 8 inch Round Frosted Cake – £16 Single Layer or £20 Double Layer 10 inch Round Frosted Cake – £18 Single Layer or £22 Double Layer 12 inch Round Frosted Cake – £20 Single Layer or £24 Double Layer 10 inch Iced Bundt Cake – £18 12 inch Iced Bundt Cake – £20</p> <h3>Cake Flavours:</h3> <p>Vanilla, Vanilla and Raspberry, Chocolate, Chocolate Orange, Chocolate and Peanut Butter, Chocolate Chip, Mint Chocolate, Mocha, Carrot, Lemon, Neapolitan, Gingerbread, Tiramisu, Black Forest, Banana Split Also available – Novelty cakes, Decorated cakes and Wedding cakes (quoted individually as each cake is unique)</p> </div><!--end column twelve--> <div class="polaroid l-tilt"> <img src="../img/products/cake.jpg" alt=""> <p class="caption">Caption text here</p> </div> </section> <section id="column-content"> <div class="column twelve"> <p>Mini Pies – £1.30 each Small Pies (5 inches) – £6 each Large Pies (10 inches) – £12 each </p> <h3>Pie Flavours:</h3> <p> Lemon Cream and Raspberry Tart, Apple Pie, Cherry Pie, Cherry Bakewell Tart, Rhubarb and Custard Crumble Pie, Plum Crumble Pie, Peanut Butter Chocolate Cups, Chocolate and Raspberry Tart, Chocolate Pudding Pie, Pecan Pie, Banoffee Pie.</p> </div><!--end column twelve--> <div class="polaroid l-tilt"> <img src="../img/products/cake.jpg" alt=""> <p class="caption">Caption text here</p> </div> </section> With CSS: .twelve { vertical-align: top; width: 660px; /*660px*/ padding: 0 20px 0; } .column { float: left; margin-right: 20px; } .polaroid { float: right; width: 150px; padding: 10px 10px 20px 10px; border: 1px solid #BFBFBF; background-color: white; -webkit-box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); -moz-box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); box-shadow: 2px 2px 3px rgba(135, 139, 144, 0.4); } .twelve, .polaroid { display: inline-block; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .column-content { max-width: 700px; }
-
Randomly placing divs/images with CSS
Thanks for your help. I don't know if I explained It correctly or if maybe it is quite difficult to do what I want to do. I'm just trying to place an image/div to the right of the paragraph text. More than one image though. I did want some indented more than others so it didn't look like a vertical line of images (if that's makes sense?) but even if each image was in the same position vertically that is fine. I think maybe I am getting some divs wrong - maybe a container with 2 divs alongside (no collapse) - what code though? Any ideas or are the answers correct for what I want to do - Im just confused by them. I hope someone can explain this for me. Thanks in advance.
-
Randomly placing divs/images with CSS
.right-indent1 { Margin-left:100px; } This would be in another div which is floated right.
-
Randomly placing divs/images with CSS
http://edgar.ldn.kualo.net/~lmpmeuk/web/busybees/products-and-prices/ On the above page I have created some polaroid-style photos and even added a rotational effect in CSS to tilt them. Im having trouble getting to grips with placing these where I want on the page. Is there a way I can randomly position them in CSS but that can still be scalable in future? Alternatively, how would you position them (don't worry about the scalable/responsive side for now)? I have tried each of the following classes but cannot get them to look right: .right { margin: 20px 20px 0 0; width: 180px; /*was 160px*/ padding: 15px 20px 20px; float: right; color: #333; } .right-indent1 { ; } Ideally I want to make them a certain amount of pixels off the paragraph text but not all in a vertical line - I want to add character by having 1 image maybe 20px right, another underneath and 15px right etc to give a random placed look. What would be the best way to achieve this?
-
Task manager / Project manager Apps
I have a mac and I also have an iPhone (probably like most here?) and I am wondering what peoples setups are here. I am also a fan of apps that are on both iPhone and Mac and that can sync / work together. I have spotted these 2 apps that are compatible with IOS and Mac: http://www.2doapp.com http://www.appigo.com/todo-task-and-to-do-list.html Does anyone here use these or anything similar? I'm open to any IOS and Mac software - it doesn't have to be sync-able between the 2 devices. I want to try and get more organised with everything. I don't want purely web-based (no app) or subscription services though. Any idea's?
-
100% width nav problem
I know there are a lot of 100% width posts but I can't seem to get an answer to my problem. The site i'm working on is located here: http://edgar.ldn.kualo.net/~lmpmeuk/web/busybees/ I want the navigation bar and footer bar at the bottom to span the whole width. As you will notice there is a slight spacing left and right of each to those bars. <header> <div class="container clearfix"> <a href="/" title="Click here to go home" id="logo"> <img src="img/logo-main.png" alt="logo"> </a> </div> <nav> <ul> <li><a href="/about">About</a></li> <li><a href="/products-and-prices">Products and Prices</a></li> <li><a href="/gallery">Gallery</a></li> <li><a href="/contact">Contact me</a></li> </ul> </nav> <div class="container clearfix center-align"> <div id="hero-image"> <a href="/"> <img src="img/slider/kitchen_adventurer_cheesecake_brownie.jpg" alt="hero"> </a> </div> </div> <!--end hero container--> </header> CSS: footer { color: #333; background: #fdffac; } /* NAVIGATION */ nav { background: #ff7070; } nav ul { text-align: center; padding: 10px 20px 10px; } nav ul li { list-style: none; display: inline; } header nav ul li a { display: inline; color: #fff; text-decoration: none; font-weight: 400; padding: 20px; } header nav ul li a:hover { background: #ff7070; border-radius: 8px; font-weight:bold; } header nav ul li a:active { -webkit-box-shadow: 0 0 5px rgba(0,0,0,0. inset; -moz-box-shadow: 0 0 5px rgba(0,0,0,0. inset; box-shadow: 0 0 5px rgba(0,0,0,0. inset; }
-
Help with CSS Centering.
Thank Rbrt, Jane and Jack. I have sorted it now with the advice give. So for centering the header image I used text-align:center; in the container it was contained it. Just so I can get an understanding, why wouldn't it be the standard centering attribute of margin:0 auto; Thanks again.
-
Help with CSS Centering.
Any ideas anyone? I don't know how to progress with this. Many thanks.
-
Help with CSS Centering.
Thanks for the advice. I removed the 3 lines and did a display: inline; However it didn't center. I centered by doing a text-align: center; in the hero-image attribute - is this correct formatting? I tried doing the same for the nav but that didn't work so I tried on the ul and li entered within nav - no joy. Any idea's?