Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

margin left and right help(overlapping)

Featured Replies

hi everyone

 

working on my portfolio site, have my portfolio page designed and laid out the way i want the only problem i have is i have one piece of work floated to the left and another piece floated to the right but underneath which can be seen at www.davidcolligan.com/portfolio2.html . which looks fine,

 

but i have a margin-bottom on the top portfolio piece but once i add more content to the top one it just overlaps the second peice of work, what is the best way to remove the margin-bottom and have it not overlap but just keep going on without interfering with the next portfolio piece

 

any help would be great thanks

 

collie

the one thats causing you a problem .portfoliodescriptionright height remove that and let it find its own height

  • Author

i tried that, but its still the same if i add more into the first one, i uploaded it again with more text so you can see what happens

I haven't looked at your page, but could you put the items in a <ul> (each portfolio piece in its on <li>)?

I haven't looked at your page, but could you put the items in a <ul> (each portfolio piece in its on <li>)?

 

lol I did say this when he msg'd me :)

lol I did say this when he msg'd me :)

 

If I had a quid for every time I've said "put it in a list" , I'd have about £4 by now!

  • Author

i forgot about you messaging me lol sorry, ill try that ul and lil first n see if that works lol.

  • Author

got it working with a list, thanx mteam www.davidcolligan.com/portfolio2.html just some style tweaks but got it sitting the right way now. thank you

You beat me to it lol nice one David

 

 

This should get you in the right direction

 

 

.porto {
width: 600px;
margin:0 0 20px;
overflow:hidden;
}
.portfolioDescriptiona {
float: left;
width: 280px;
margin:0 20px;
}

 

 

 

<div class="ten columns portfolioMain">
<ul class="portfolio">
<li class="porto one">
<img href="" class="five colums portfolioImg"></img>
<section class="five colums portfolioDescriptiona">
<h1>HighBury Stone</h1>
<p>Highbury Stone is a small independent contractor specializing in all types of stonework and interlocking; walkways,
driveways, patios, pillars, walls and all types of stone repair. We proudly service Burlington, Ontario and surrounding areas. </p> <h2>Skills</h2>

<ul class="portBtnLeft">
<li>CSS</li>
<li>HTML</li>
<li>PHP</li>
<li>photoshop</li>
</ul>
</section>
</li>


<li class="porto two">
<img href=""class="five colums portfolioImg"></img>
<section class="five colums portfolioDescriptiona">
<h1>Name</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard </p>
<h2>Skills</h2>
<ul class="portBtnRight">
<li>CSS</li>
<li>HTML</li>
</ul>
</section>
</li>
</ul>
</div><!-- end of portfolio Main -->

Edited by mteam

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.