Some css details

Posted in: Newspaper
Post count: 92

Hello I have two questions regarding css.
1. I want to make text in mega menu align left and menu itself align right: https://ibb.co/mhBbjq

I wrote following
.td-header-main-menu {
text-align:right;

But in this case text also align right.
Please assist me to leave main menu align right and the text in it align left.

2. I want to decrease space between logo and menu: https://ibb.co/irtp4q
I wrote following:
.td-header-style-1 .td-header-sp-recs{
margin: 20px -20px 0px 0px;
}
.td-header-style-1 .td-header-sp-logo {
margin: 0px 0px -20px;
When there is no HEADER AD this space is small as I wish,
But just I put any text in HEADER AD block this space again begins bigger then I wish.
May be ther eis some parameter for “Header ad” to minimize its margin as well?

Will appreciate your help!
Thank you.

  • This topic was modified 7 years by likocorp.
  • This topic was modified 7 years by likocorp.
Post count: 20688

Hi,

1. That text should already be aligned to the left – http://prntscr.com/ll3xbr
So you want to align the header menu to the right, but not anything else.

Something like this would work for that – http://prntscr.com/ll40ec

#td-header-menu {
float:right;
}

2. For a proper solution I would need a link to the website, so I can test. There is a margin below the logo, but it’s not big. For me it looks like this
https://www.screencast.com/t/ehJLveGC5xy

Setting a small line height for the main menu will affect the menu height as well. For example
https://www.screencast.com/t/LyUcxrMLg
If possible provide a link to the website, with the header ad set so I can take a look and see what would be the best solution.

Thanks

Post count: 92

Thank you Simion
With first question your advice worked. Thank you.
For second question I sent you e-mail.
Thank you

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.