Browser compatibility of a section [closed] - html

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 8 years ago.
Improve this question
<section class="wrapper">
other html codes.
</section>
Following is my css.
.wrapper {
display: inline-block;
margin-top: 60px;
padding: 15px;
width: 100%;
}
For mozilla and chrome there are no issues.But for internet explorer, the entire section moves right a little.Help me to fix the issue.

Have you tried using the HTML5 shiv? Although IE 10 shouldn't need this.
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
Another possibility is different browsers have different default margins/padding. Try to zero them out with:
*{margin:0;padding:0}

Try using reset.css as found from here http://meyerweb.com/eric/tools/css/reset/reset.css ... Use this css file as the first top file in your css.. .and then rest of your css. Let us know how it goes

Related

How to apply background image in css html [closed]

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 1 year ago.
Improve this question
Good day everyone! I am trying apply a background image via an image link but I do not know how to make it work. Does anyone know how to make this code works. Thank you.
background-image: url("https://www.logodesign.net/logo/building-on-crescent-4303ld.png?
size=2&industry=company")
You are not supposed to use HTML for setting a background image. You should learn css.
But here is an example if you want a taste:
<div class="your-class">
<style>
.your-class{
height: 500px;
width: 500px;
background-image:url("https://www.logodesign.net/logo/building-on-crescent-4303ld.png?size=2&industry=company");
background-size:cover;
}
</style>
Instead of exporting via html, you can do it with css operations.

how to work with divs in HTML5 [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 7 years ago.
Improve this question
I just started to work with HTML and I wanted to make a site which has got a colour on the upper side, an another colour on the lower side. I did some research, and I discovered that you got to work with divs. Can you make a nice div in HTML, or do you got to make a div in css (which does fit correct to my site)?
Create your divs in your body with id's
<div id="upper"></div>
<div id="lower"></div>
and then using css you can change some attributes such as color and size, for example in either an external css file or inside of style tags you can do this.
#upper {
background-color: blue;
width: 100px;
height: 100px;
}
#lower{
}
w3schools.com is a great resource for beginner web development, check it out.
Div is a html element. You can set its properties through css but a div doesn;t exsist in css. It is just a way to divide up section in html. Here is some basic information about divs.Divs Info

html link in a ul is not lined up [closed]

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 a link in a and it isnt lining up. You can view it here http://104.236.190.78/technology/
I added this css to try and shove the links down:
a{
padding-top: 3%;
}
I also tried that used 30px and it also didnt work. Any help is appriceated. Thanks.
Your screen.css (bootstrap) has a line-height:1em for some reason, this css should override it.
Add this to your CSS
body .content a {
line-height: 0;
}
Try this
a{
line-height: 33px;
}
In your html document (line 480) you are globally styling your anchors with the following code a{line-height: 33px;} which is causing your footer link to be misaligned. Take a look at the code and make some adjustments or delete it if it unnecessary.

Responsive HTML not reacting as expected in different browsers [closed]

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
So I am making a website but some weird thing is happening.
Like, you can see it happen by yourself, it's pretty staight forward; try opening this link into Chrome and Firefox (for example).
Chrome reacting just fine, and not Firefox.
As the two files are pretty long, I pasted those in pastebin:
header.php (which is called in my index): http://pastebin.com/E7P9y7Dt
style.css: http://pastebin.com/AxHQQJya
Can someone please help?
Thank you in advance.
Solid
Css properties you are using works differently on different browser.
i checked the page found issue specific with logo css
use display: inline-block; instead of display: table-cell;
finally your logo css should be
.logo {
display: inline-block;
padding: 5px 0;
vertical-align: middle;
width: 140px;
}
at line number 153
Obviously vikrams solution worked. If you really need to display it as a table-cell for some reason, you can also solve it to declare properties inside the element like this.
<div class="logo">
<a title="ArtiTrans" href="index.html">
<img alt="ArtiTrans" src="images/logo.png" width="100%" height="100%"></img>
</a>
</div>

Remove whitespace of HTML form [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 9 years ago.
Improve this question
I have this code that indents/whitespaces the content.
<form action="update-carousel.php" method="post">
How can I remove such indent/whitespace? I assume with CSS, but I do not know the tags to do so.
If you want to remove margin and padding for the form-element, then use this in your css:
form {
margin: 0;
padding: 0;
}
Margin is whitespace external to the element and padding is internal.
You have to use JavaScript (and/or do it on server-side).
This question will show you how to do it.
Note: CSS is for the design of your page, not for doing such operations.