Posted in sections
3816
4:33 am, September 20, 2021
 

easy section wrap in foundation

i am always writing these wrap sections so i thought i would just add a basic one here, easy to copy and paste into a new section

HTML

<style>
.mysection-wrap {
	margin:0 auto;
	width:100%;
	max-width:1200px;
	padding:50px 0;
	text-align:center;
}
.mysection {}
.mysection-title {}
.mysection-text {}
</style>
<div class='mysection-wrap'>
	<div class='grid-container'>
		<div class="grid-x grid-padding-x grid-margin-x">
			<div class="large-12 cell">
				<div class="mysection">
					<div class="mysection-title">
						<h2>My Section Title</h2>
					</div>
					<div class="mysection-text">
						Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis rutrum sapien non ornare sagittis. Fusce quis dignissim felis. Pellentesque iaculis nisl et est ultricies, id mollis lorem volutpat. Praesent nec nunc vel quam facilisis
						scelerisque a ut orci. Sed sed enim vestibulum ex commodo venenatis vitae in mi. In eu velit sed nunc euismod tempor ac at odio. Mauris sit amet mi ac turpis rutrum congue sit amet id nunc.
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

CSS

.mysection-wrap {
	margin:0 auto;
	width:100%;
	max-width:1200px;
	padding:50px 0;
	text-align:center;
}
.mysection {}
.mysection-title {}
.mysection-text {}

Scripts

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.7.1/css/foundation.min.css" integrity="sha512-v+8NDdbqsMuwxIAN2W+k6TQRNEBHl8JYCqlPfrCTWbulRJicymcTHMVS3BSw791eCHMdkQxRznzxxsvEuNQe3w==" crossorigin="anonymous" referrerpolicy="no-referrer" />

View Statistics
This Week
93
This Month
333
This Year
607

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
The problem with hoarding is you end up living off your reserves. Eventually, you’ll become stale. If you give away everything you have, you are left with nothing. This forces you to look, to be aware, to replenish. . . . Somehow the more you give away, the more comes back to you.
Paul Arden
Random CSS Property

:not()

The :not() CSS pseudo-class represents elements that do not match a list of selectors. Since it prevents specific items from being selected, it is known as the negation pseudo-class.
:not css reference