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.

Need some spacing help with my css

Featured Replies

My page I am working on is my index.

 

robinsden.co.cc

 

you'll see when you look at it I got some boxes with text in them. What I don't seem to be able to figure out is how to get a space between them.

 

my two css sheets are.

http://robinsden.co.cc/Scripts/CSS/all.css

and http://robinsden.co.cc/Scripts/CSS/layouts.css

 

I have tried just putting <br/> but that dose not seem to space the boxes. I am thinking that's because they float. I'm pretty sure though there has to be a way around this problem.

My page I am working on is my index.

 

robinsden.co.cc

 

you'll see when you look at it I got some boxes with text in them. What I don't seem to be able to figure out is how to get a space between them.

 

my two css sheets are.

http://robinsden.co.cc/Scripts/CSS/all.css

and http://robinsden.co.cc/Scripts/CSS/layouts.css

 

I have tried just putting <br/> but that dose not seem to space the boxes. I am thinking that's because they float. I'm pretty sure though there has to be a way around this problem.

Hello Robinsden

 

Have you tried putting a margin on the divs?

 

Kath

  • Author

div.box401 {
background:url("../../banner/box1.jpg") repeat-x scroll center top #CCCCCC;
border:1px solid #FFFFFF;
display:inline;
float:right;
height:200px;
margin-bottom: 20px; /*change this value for required space*/
padding:10px;
width:44%;
}

 

You need to learn how to construct pages properly as your code seems a bit messy

 

 

I just changed my code with what you gave me and it works now. Thanks, and yes I know my code is a bit messy because it's been changed many times over a long span of time.

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.