Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
im trying to centering the ul menu in center but isnt working, the menu is sticky fixed menu, hope someone can find a solution in centeriong my top menu in the page.
Here is the link do take look
http://jsfiddle.net/pMBfD/
or
http://maurobonucci.com/demo/
Try this seems to work on jsfiddle.
ul#menu {
float: none;
list-style: none;
margin: 0 auto;
Update using CodePen instead of jsfiddle
http://codepen.io/anon/pen/DxnjH/
I'm not entirely sure what you're looking for, but here's my suggestion:
I took a look at some of your css code...
ul#menu {
float: left;
list-style: none;
margin: 0px 0px 0 0px;
width:700px;
}
To center any div nowadays, you should use something like margin: 0 auto 0 auto;, giving you a centered element/div with a top and bottom margin of 0. Apply this to the menu and it should come out centered. Hope I could help!
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
so I am trying to make my banner expand across the page,
I have already tried width: 100% but it has a gap (about 5px width) on either side, any ideas why it's doing this?
CSS
.banner {
width: 100%;
height: 300px;
border-bottom: 1px solid #000;
}
It is your browser default margins and padding, do this in your css:
body {
margin: 0;
padding: 0;
}
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 8 years ago.
Improve this question
When viewing the website on my iPhone (or when I resize the browser), the text in the About Me section of the footer partially disappears on the right hand side of the window.
When I remove the padding from #footer .wrap, none of the text disappears from the browser window. At it's current value, the padding is 10px 15px.
Ideally, I'd like to keep some sort of padding instead of setting it to zero (or removing it), while obviously having all of the text appear in the browser.
Website: http://www.josephruscitti.com/clients/vickieats/
Screenshot: http://imageshack.us/a/img534/3144/xhx0.jpg
Remove width: 100%; from here on the mobile media:
#footer-widgets {
background-color: #F5F5F5;
border-top: 1px solid #DDDDDD;
clear: both;
font-size: 14px;
margin: 0 auto;
overflow: hidden;
width: 100%;
}
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to add a background image to my site-header. Part of the image should be covered by the main-content.
It is positioned correctly however even though I've added z-index, the main content doesn't cover the background image.
Here is the website.
Why would that be?
Thanks!
Edit:
If you look on the right side you will see the brown egg is not covered by the main content. You can still see part of it.
Here is some code:
.header-navigation.back {
z-index:-1;
position:absolute;
margin-left:0;
margin-top:-6px;
border:none;
display:block; height:137px; width:1171px; padding:0px; outline:none; text-indent:-9999px;
background-image:url('http://frenchegg.com/images/backmenu.png');
}
and here is the main content that should cover the image:
.main-content {
z-index:99;
position:relative;
padding:1em 0 8.5em 0;
background:#fff;
}
please add the overflow:hidden css to the header-wrap class
.header-wrap {
...
overflow: hidden
...
}
and it should look good.
For the log in issue:
remove the z-index: 99999 from the class .bann
and add this css to the class tooltip-wrap
sorry something went wrong
Thanks
Seems like you could just reduce the height of the header-navigation.back rule to 100px rather than mess with z-index.
I changed the bann class to :
.bann {
cursor: pointer;
display: block;
height: auto;
position: relative;
width: 101.5%;
z-index: 99999;
margin-left: 12px;
}
after that it seems ok ... check it and inform me of the result;
I tested the code above with firebug ;)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Having a little problem with the comment part on the website i'm working on:
http://whybaguio.com/php/profile/businessprofile.php?id=103#
See how the ADD YOUR OWN FEEDBACK! div goes down together with the Facebook comment. I don't know how to not let it go down with the facebook comments.... Lol, I'm not really sure if I'm explaining my self right but I hope you guys get it...
I tried positioning it relative and absolute but it goes out of its parent div....
Please help me out, thank you!
Okay, this is a problem with how to use position:absolute; What you need to do is change your code like this:
#feed {
background: white;
height: 280px;
padding: 10px;
margin-top: 295px;
overflow-y: auto;
margin-left: -580px;
position: relative;/*this needs to have a position for .secondcomment to 'hook on' to*/
}
.secondcomment {
position: absolute;
top: 10px;
right: 0;
}
If i understand it right: place the "ADD YOUR OWN FEEDBACK" div before the "Facebook comment" div in your HTML code.
Your "ADD YOUR OWN FEEDBACK" div has a "float: right" property and blocks with "float" should go before non-floating blocks.
You can set float: left; property to .fb-comment class, and remove margin-left property from .secondcomment class.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
The below css coding is used in my page. But in chrome it displays the image fine. but in firefox it breaks. I dont know why it shows like that. If anybody know the solution for this please help me. Thanks in advance.
.vote
{
position:absolute;
margin: 53px 3px 0 115px;
}
http://domian.com/mysite/pollpage.php?id=2&mview=72
This is my website page. The vote image alignment is correct in chrome but not in firefox
add position relative
.contentbox
{
position: relative;
}
and remove margin ,
add bottom and right
.vote {
position: absolute;
bottom: 0;
right: 45px;
}
...
Now define your main div #polling .pollpagewidth div .contentbox position relative and give to img tag position absolute and define right or bottom value according to your design
Hi now add this css in your style sheet and fixed this problem
#polling .pollpagewidth div .contentbox{
position:relative;
}
.contentbox > img {
bottom: 16px;
margin: 0;
padding: 0;
position: absolute;
right: 43px;
}