WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

Go to page : 1, 2  Next

View previous topic View next topic Go down  Message [Page 1 of 2]

Matti

Matti
Registered Member
Registered Member
Hey guys, as you can see here http://thetestzone.forumotion.com/ the nav bar when you put the mouse one the text and the other text moves to the right and left and how can I fix that so the only hover can show but the text doesn't to the right and left if you know what I mane.

http://csshelp.forumotion.net/

RockerMan

RockerMan
Technician
Technician
You need to applied negative margin/padding, you have applied padding or margins somwhere.

Then add the right and left padding up and set that as the negative padding/margin...

So if you have applied 5px margin you go -10px Smile

http://www.graphics-post.com/

Matti

Matti
Registered Member
Registered Member
Hey RockerMan, Thanks for replying but as you can see the code I have applied much with padding no margin so can you please fix this.


#page-header .navbar {
display:block;
background-color: #99ccff;
border-style: solid;
border-width: 1px;
border-color: #3a93c6;
padding-top:5px;
padding-bottom:5px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}

#page-header .navbar a:hover{
background-color:#d3e6f3;
border-left: 1px solid #3a93c6;
border-right: 1px solid #3a93c6;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
padding-top:8px;
padding-bottom:9px;
padding-right:4px;
padding-left:4px;
}



http://csshelp.forumotion.net/

RockerMan

RockerMan
Technician
Technician
OK so add -4px on the #page-header .navbar a:hover

Code:

padding-right:-4px;
padding-left:-4px;
Add it after the padding-left:4px; Smile

Hope this helps Smile

http://www.graphics-post.com/

Matti

Matti
Registered Member
Registered Member
I did as you said but nothing happen

Btw here is where I get the idea from http://www.w3schools.com/css/tryit.asp?filename=trycss_navbar_horizontal_float_advanced

http://csshelp.forumotion.net/

RockerMan

RockerMan
Technician
Technician
I've just tried it in Firebug and worked fine for me :/

Ad !important to the two rules...

http://www.graphics-post.com/

Matti

Matti
Registered Member
Registered Member
Hmm... still nothing any other way on doing this or if you want I give you a test account with admin rights so you can check it.

http://csshelp.forumotion.net/

RockerMan

RockerMan
Technician
Technician
Yeah,send me the test account details via PM Smile

http://www.graphics-post.com/

Matti

Matti
Registered Member
Registered Member
Sent Smile

http://csshelp.forumotion.net/

Syfte

Syfte
Registered Member
Registered Member
I think you'll have to add the padding for the individual button ID's..not the whole navbar.
#i_icon_mini_index
#i_icon_mini_calendar
etc.
It should add padding in between the buttons so it will have the same padding as it does when hovered.

http://www.spotfeed.net

RockerMan

RockerMan
Technician
Technician
It's something in the forums basic CSS, you need to deactivate the basic CSS then paste it in to the custom CSS bit. Unless someone can come up with another soloution.
I don't really know how Forumotion CSS works...

People ask why I hate forumotion, this is why along with alot of other things :@

http://www.graphics-post.com/

Guest


Guest
Remove the padding from the hover part (:

Edit: if not works, the problem is the border-right,left (:



Last edited by Gangstar15 on Sat Feb 12, 2011 7:52 am; edited 1 time in total

Syfte

Syfte
Registered Member
Registered Member
Gangstar15 wrote:Remove the padding from the hover part (:
Yeah...that would be easier Razz

http://www.spotfeed.net

verrell123

verrell123
Registered Member
Registered Member
Syfte wrote:
Gangstar15 wrote:Remove the padding from the hover part (:
Yeah...that would be easier Razz
Gangstar15 Right All the best

http://www.freshartz.co.cc/

RockerMan

RockerMan
Technician
Technician
Never worked, that was the first thing I tried...

It's something the basic CSS

http://www.graphics-post.com/

Guest


Guest
I edited my post (:

Matti

Matti
Registered Member
Registered Member
Gangstar15 wrote:Remove the padding from the hover part (:

Edit: if not works, the problem is the border-right,left (:

Gangstar15, your current the borders are the problem but I want to have them cuz without border looks ugly.

http://csshelp.forumotion.net/

Guest


Guest
Hmm.. okay (: in the normal code add border-right,left and make the colors the same as the background (:

Matti

Matti
Registered Member
Registered Member
I tried that and nothing happen.

http://csshelp.forumotion.net/

Guest


Guest
Edit:
Add this to your CSS:
Code:

#page-header .navbar a{
padding-top:9px;
padding-bottom:10px;
border-left:1px solid #99CCFF;
border-right:1px solid #99CCFF;}

and replace the hover part with this:
Code:

#page-header .navbar a:hover{
background: #D3E6F3;
padding-top:9px;
padding-bottom:10px;
border-left:1px solid #fff;
border-right:1px solid #fff;}

Matti

Matti
Registered Member
Registered Member
Is the same so whatever we do nothing changes and I think i need to let it stay like it is.

http://csshelp.forumotion.net/

Guest


Guest
nope its not.. i tried it and it works, just give me the test account (:

Matti

Matti
Registered Member
Registered Member
Sent.

http://csshelp.forumotion.net/

Guest


Guest
Take a look (:

Matti

Matti
Registered Member
Registered Member
Nice but the left and right border are to closed to the text so is it possible to have some space between right and left.

http://csshelp.forumotion.net/

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 2]

Go to page : 1, 2  Next

Permissions in this forum:
You cannot reply to topics in this forum