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
I'm creating a page that needs three tables placed horizontally.
I tried two first using:
#table_one {
position: relative;
float: left;
}
#table_two {
position:relative;
display: block;
}
And it worked. I wanted to add another table so I tried:
#table_one {
position: relative;
float: left;
}
#table_two {
position:relative;
display: block;
#table_three {
position:relative;
float: right;
}
But that third table appears below the two tables, placed itself on the right, and it expands itself vertically it even got out of my page background.
Instead of float:left/right use inline layout for the block elements (like display:inline-block or display:table-cell)
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have menú in my web of margin left, but I want put text in the next of menú, of the left relative this. But I make a div in css and this put below of menú.
What position I need put?
I have a div inside other div.
example code this:
http://jsfiddle.net/a70aabub/
Thank you!
Add float:left for text class.
#menu ul {
margin: 0px;
padding: 0px;
width: 200px;
float:left
}
#menu ul li {
background-color: #999;
}
#state {
position: relative;
left: 0px;
float:left
}
http://jsfiddle.net/a70aabub/1/
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
I am trying to move my right sidebar over to the right more. Just like how my left sidebar is. My website is marikastravels.com
Any help would be appreciated!
in your CSS change width to
.yui-t2 .sidebar {
width: 18.5%;
float: right;
}
Also, this will give more room for your center div which you can increase too e.g.
.yui-t2 .main-content {
width: 78.5%;
float: left;
}
I tested the above code in Chrome.
Both works.
<ul class="xoxo" style="float: right;">
<li>...</li>
<li>...</li>
...
</ul>
or
<style type="text/css">
.xoxo{
float:right;
}
</style>
#right-primary {
float: right;
}
I suggest bootstrap for all the other problems
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 9 years ago.
Improve this question
for some flipping reason I can't control the height of width of my image
.pop_image{
top: 10px;
width: 100px;
height: 100px;
position:absolute;
}
the html
<ul class="pop_image"><img src="1.jpg"></ul>
To controll the size of the image, you need to address the image on the CSS:
.pop_image img {
width: 100px;
height:100px;
}
Your CSS will determine the size of the <ul> list, not your image.
Try the following instead:
.pop_image img {
top: 10px;
width: 100px;
height: 100px;
position:absolute;
}
Try to add a display: block; in .pop_image class even if the ul is normaly a block...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am trying to align "Discuss" "Bury" with the above text in the site but in vain
http://pligg.marsgibson.info/story.php?title=latest-headling-mews-gossip-fun-entertainment-music-gala-and-so-on-for-you-only-for-the-purpose-of-entertaining-you
see the screenshot
I want to align just as in the screenshot
how this can be achieved ?
You need to move that span.linksummaryDiscuss into div with storycontent1 class
or just wrap it in a div and style it (somewhat simliar to div.storycontent1)
.newdiv {
padding: 0 80px;
width: 580px;
}
Option 1
Remove the left padding from .storycontent1:
.storycontent1
{
padding-left:0;
}
Then add the padding to .storycontent
.storycontent
{
padding-left:80px;
}
Option 2
Add this style rule:
#linksummaryDiscuss {
padding-left: 80px;
}
This option will only work if the Discuss span is always there.
move the style: padding: 0 80px; from .storycontent1 selector to .storycontent.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a background img 120x30, but it's not showing in the full size..why?
Please look here http://f1u.org/en - under each article readmore button.
<a> is an inline element. So, an inline element in not take height, width , vertical margin & vertical padding in it's.
Then we have to define display:block in the css like this:
.comments-link, .readmore-link {
display: block;
}
Add display: block;
.comments-link, .readmore-link {
background: url("images/readmore.png") no-repeat scroll 0 0 transparent;
border: medium none;
display: block;
font-size: 11px;
height: 30px;
line-height: 30px;
padding: 0;
text-indent: 8px;
text-transform: uppercase;
width: 120px;
}
The a tags are inline elements so width won't apply, they will automatically resize depending on content. If you change the display to block then you can control the elements width and height and should see the image. You might want to also float them so if you have the comments link and read more link they will be displayed side by side. Add the following to your style sheet:
.comments-link, .readmore-link {
display: block;
float: left;
}