left and right sidebars

I want to show left and right sidebars, for that i created one new sidebar and able to add widgets also. But unable to display at right side ,but it is displaying at bottom of my page after all posts.
I want to display like left sidebar - post content - right sidebar.

added following code in functions.php

  register_sidebar(array(
    'name' => 'sidebar-right',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '',
    'after_title' => ''
    ));

created sidebar-right.php with following code
`

</div><!-- #secondary -->`

Added following code in style.css

#sidebar-right { 
float: right;
		margin-left: -100%;
		max-width: 413px;
		position: relative;
		width: 29.4118%;
		}

Added following code in index.php

<?php get_sidebar(); ?>
<?php get_sidebar("right"); ?>
<?php get_footer(); ?>

Kindly help some one. This is my first post in the forum.

Hi @chinna14,

I hope you are well today and thank you for your question.

Please add the function call get_sidebar() before the code in index.php that displays content.

Best Regards,
Movin

Hi Movin, thanks for your reply.I am not sure where should i call get_sidebar() in index.php. I tried in multiple places but failed. Following is my index.php code.

Please help me.

Please add it above the following code.

<div id="primary" class="content-area">

Then you also need to develop custom code to display it in right position.

If you don’t know how to develop that custom code then could you please share me the page URL from your site where it is displaying so that i can help you to achieve it?