List item first row not aligning properly [closed] - css

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 8 years ago.
Improve this question
I have this unordered list
http://neaen.com/frying/neaen-masterfry-continuous-fryer.html
Whichever combination I tried using FireBug, I can't get the first row to align properly. I am sure this is an easy fix, but I am missing it somehow.

These are caused by line breaks in the list items. Do one of two things. Either remove all spaces between each </li><li> or remove the closing </li> altogether. This is valid.

I would get rid of the unordered list code entirely and use divs to make this work. Then you could put only a single link for each of the boxes and have the entire box be the link for each one.
You will have more options for styling and positioning your content that way.
Here is a source you can look at for that: http://css-tricks.com/creating-clickable-divs/
Apologies if this doesn't answer the specific question.

Related

Is there CSS elements that block hyphens from working? [closed]

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 27 days ago.
The community reviewed whether to reopen this question 27 days ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I've been looking into it and can't figure it out. In my page, the hyphens that are on a *{} selector work in most places, just not the titles. And I verified, nothing comes up that undoes the *{} selector
I'm trying to figure out; is there something that blocks hyphens from working? Like how a sticky wont work if anything the sticky is over has an overflow property?
There was a discussion on SO about this these days: The words "Navigation" and "Databases" in your h1 are not hyphenated because they start with a capital letter, which most browsers apparently interpret as not-to-be-hyphenated nouns.
You might want to spell them as "navigation" and "databases", wrap <span> tags around those and apply text-transform: capitalizeto those, either in a dedicated class or in style attributes. Or you use soft hyphens (­) in those words.

Why is my element under another element while the second element doesn't have a z-index? [closed]

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 2 years ago.
Improve this question
I am working with a React package name 'react-select' that allows me to create dropdown easily. Everything was fine until I create a page where there is multiple divs with several dropdown inside. Weirdly, they go under the next dropdown in the stack.
I can't really copy all my code, so I made something on netlify. Try to open the dropdown under the "Training" section, you should see what I am talking about. There are some empty options, but it's the same behavior anyway.
I tried to put a higher z-index on the "menu" parts (where there is options), but it didn't work.
Here is the link: https://nervous-franklin-89a3d8.netlify.app/#/demo-modify-profile
Thanks!
Seems the problem is the dropdown is trying to overlap the next section(files section in rour example). You need to add a Z-Index to the section containing the dropdown. However Z-index property only works on a positioned element. See docs here
So you want something like this.
<div style="position:relative;z-index:1{higher than other sections};">Container with dropdown in it</div>
<div>Next Section</div>

Inline Block Display Issue [closed]

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
I am creating a dashboard and in the dashboard I got two boxes that I wanted have in the same level at the top. I am using the display "inline-block" to group them in boxes; however, the result is different instead the bottom part is in the same level but the top is not. See screenshot below:
https://www.mediafire.com/convkey/8e14/xdh672yojc8owe86g.jpg
I set the height of each box to "auto". You can see on the screenshot that the first box is not aligned equally to the second box, is there a way to have the two boxes in the same level or aligned equally at the top? I tried using table-cell display but it has compatibility issue on other browsers such as IE. Thanks
Use the verical-align: top; CSS property on the element which contains your inline-block elements. ;)

Wordpress menu z-index [closed]

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 8 years ago.
Improve this question
My wordpress menu is underneath the elements in the body of the page, when it shouldn't be.
I have checked the z-index over and over again.
The elements in the menu have a z-index of 99 and the elements in the body don't have a z-index value. So in theory the menu should be over lap the elements in the body of the page, but it does.
So if it's not the z-index then that is it?
Note: I know people always want to have some code pasted in the question but the css is 1969 lines long and I don't know which part of that is wrong. And I'm not going to paste 1969 lines into this question.
okay here is the solution
move to the file http://www.kodemagd.de/wp-content/themes/spun.2.0.2/spun/style.css?ver=3.9.1
go to 889 line and find
.hentry
just remove
position: relative
from this and then check the output

Why is the first box in the second row not in the second row? [closed]

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've battled with a two column layout for a WP index and got it working.
However on this one site it will not work:
http://justbedroomdesigns.com
You will notice that the third box containing a pic of a bed (or the first box in the second row - bottom left one) is not in its correct place (to the left of the final box with a bed pic).
I've used height auto to try fix it but it's still out of place.
All help hugely appreciated as is all the help I get from this awesome community.
the reason is that your images height is not same so give height to your post-block DIV. Like this:
.post-block{
height:355px;
}
I would suggest using a CSS reset if you dont already use one. http://meyerweb.com/eric/tools/css/reset/ Using and calling one before calling your css file can do wonders with cross-browser consistency. May be a pain to add now being that after you will also have to change your current CSS again but as a last resort, should help remedy your issues. Also by adding the above code by #sandeep as it fixed the issue I was seeing in Ffox.

Resources