CSS Width Question

Posted by Community Admin on 05-Aug-2018 20:21

CSS Width Question

All Replies

Posted by Community Admin on 04-Feb-2011 00:00

Hello,

I'm trying to create a template from scratch.

What I'm trying to do is that a centered main block with fixed size (943px) including a header, a menu and a content divs.

I want to make the menu with a left and right border (1px) but its size expands to 945px. I want to make it fixed size like header and content (943px).

Below is the HTML code for main wrapper:

  <div class="sf_cols Header">
    <div class="sf_colsOut sf_1col_1_100" style="width: 100%;">
      <div class="sf_colsIn sf_1col_1in_100" style="margin: 0%;" id="T4F5C4460000_Col00">
        <div class="sfContentBlock"> header part </div>
      </div>
    </div>
  </div>
  <div class="sf_cols Menu">
    <div class="sf_colsOut sf_1col_1_100" style="width: 100%;">
      <div class="sf_colsIn sf_1col_1in_100" style="" id="T4F5C4460017_Col00"> menu with left and right border </div>
    </div>
  </div>
  <div class="sf_cols Content">
    <div class="sf_colsOut sf_1col_1_100" style="width: 100%;">
      <div class="sf_colsIn sf_1col_1in_100" id="T4F5C4460012_Col00">
      </div>
    </div>
  </div>  
</div>


And this is the CSS:
body

    background-image: url('../Images/bodyBg1.gif');
    background-repeat: repeat-x;
    margin: 0;
    padding: 0;


.sfPublicWrapper

    width: 943px;
    margin: 0 auto;   

.Menu

    background-color: #f79c2a;
    height: 50px;      
    border-left: 1px solid #af752c;
    border-right: 1px solid #af752c;   



Thank you!

Posted by Community Admin on 07-Feb-2011 00:00

I achieved what I was trying to do with 960 grid system and developing a MasterPage within Visual Studio.

As a suggestion, I think integrating the Sitefinity layout UI with 960 grid system will be nice.

Thank you

Posted by Community Admin on 07-Feb-2011 00:00

Hi Oguz,

The width of the menu should be 941px minus left(1px) and right(1px) borders.

<div class="sf_cols Menu">

    <div class="sf_colsOut sf_1col_1_100" style="width: 941px;">
      <div class="sf_colsIn sf_1col_1in_100" id="T4F5C4460017_Col00"> menu with left and right border </div>

Greetings,
Sonya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 05-Mar-2012 00:00

Hi,
I want to apply this css on the body

body 
background-color:#000000;
width:1342;
What should I do ?

Posted by Community Admin on 07-Mar-2012 00:00

Hi Berrabah,

You can either add it to the theme of your template, or with a css widget.

All the best,
Jen Peleva
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 08-Mar-2012 00:00

Thankx for help :)

This thread is closed