Help - Search - Members - Calendar
Full Version: Changing position of div CSS wordpress
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
conrad23
Hello,

I got a problem with moving div.hmenu_center to the right in additional CSS on wordpress. I can move logo to the right, but there is still space on the right that is clickable. I found solution in changing "margin-left:" but I still cannot make that change in CSS on wordpress. Does anyone got idea how can I make it? Thank you a lot. Everything will be more clear when you look at the picture.

IPB Image
pandy
It would be more clear if you posted the URL to the page in question. wink.gif
conrad23
That is true. My bad. here is the url: https://www.wayofsport.pl
pandy
Thanks. When you said...
QUOTE
I can move logo to the right, but there is still space on the right that is clickable

...did you mean space to the left?
conrad23
QUOTE(pandy @ Nov 19 2018, 07:51 AM) *

Thanks. When you said...
QUOTE
I can move logo to the right, but there is still space on the right that is clickable

...did you mean space to the left?

Exactly. wacko.gif
pandy
It's all your positioning that complicates things. The clickable space specifically is caused by your positioning of the logo image inside the A.

CODE
#hmenu_load_3 .hmenu_logo img {
    left: 180px;
}


You create a 180 pixels wide clickable space right there.

I wouldn't use that much and detailed positioning. Try placing both the logo and the menu links in a common container and place that where you want it. You could position it 50% from the left and then nudge it back with half the width of the logo using a negative left margin. Then the logo would end up dead center and no more positioning should be needed.
conrad23
Thank you for a quick reply. I will try my best to fix it in a way you suggested!
pandy
You are welcome. Good luck! smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.