Customizing SMF > Graphics and Templates

Top menu background width

(1/1)

natasa:
Hello!

How can I change width of top menu background so that it goes from border to border
(I attached image to explain what I want).
It is Default Theme - Curve, and SMF 2.0.2.

I tried to change index.css starting with part of code:


--- Code: ---#main_menu
{
padding: 0 0.5em;
float: left;
margin: 0;
width: 98%;
--- End code ---

I tried to change padding and width, and parts of other menu codes, but no luck.

Can somebody help me to solve this?
Thanks.

mashby:
Mind providing a link to the site where the screen shot was taken? That will help in the analysis a lot. Thanks! :)

natasa:
Hello mashby.

Here is a link: test.serbianpress.com

I would like to make some changes in theme look,
and would like to know how to expand top menu background on left and right, to the edges of header.

mashby:
Maybe try this?

--- Code: ---#main_menu
{
    background: lightblue;
    float: left;
    margin-left: -20px;
    padding: 0;
    position: absolute;
    width: 90%;
}
--- End code ---

and this:

--- Code: ---.dropmenu
{
padding: 0 1em;
}
--- End code ---

natasa:
Yes, it is working!
Thanks mashby  :laugh:!

Navigation

[0] Message Index

Go to full version