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.

Having different content boxes

Featured Replies

Hey guys,

 

Sorry for a quick-fire question again.

 

If for example I wanted content boxes like this site http://www.cotswoldwebservices.co.uk/ where they have e-commerce, graphic design, seo and marketing etc. how would I go about in creating this?

 

I know it's something to do with the <div> tags?

Could you possibly show me a tutorial or something?

 

Once again, sorry but I searched it, but nothing helpful came up.

 

Thanks,

Preemo

You code a container and then code four divs inside with float: left; width: ??px;

Make sure that the total widths of 4 divs plus their side margins, side padding and side borders total the width of the container.

 

CSS

#container { width: 1000px; overflow: hidden; }
#div1, #div2, #div3, #div4 {float: left; width: 240px; padding: 5px; }/*240 + 2*5 = 250 x 4 = 1000*/

<div id="container">
<div id="div1">........</div>
<div id="div2">........</div>
<div id="div3">........</div>
<div id="div4">........</div>
</div>

Edited by Wickham

You haven't got a proper stylesheet, it's got html markup for 404 File Not Found instead of the CSS and your html file must have a doctype at the top before the <html> tag from here

http://www.w3.org/QA/2002/04/valid-dtd-list.html

Edited by Wickham

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.