« Web, HTML, Tech Forum

Is there a way to make left main and right main have a gap?

I've been trying for quite a while now but I can't seem to separate left. main from right. main with a space between them. 

I'm not even sure it's possible so if you know how to do this or if it's an option, a comment would be much appreciated.


Report Topic

2 Replies

Sort Replies:

Reply by Ms Myspace

posted

I'd assume margin-right: #px on the left one and then margin-left: #px on the right one


Permalink Report Reply

Reply by Div

posted

Margin doesn't work tho padding does. Try this:

<style>

.col.left {
 padding-right: 30px;
}

.col.right {
 padding-left: 30px;
}

</style>


Permalink Report Reply