div auto responsive to text inside - html

I have a DIV inside another. One of those has "plain text" and what I want to do is to make its width automatic with a maximum with possible.
Here is the code:
HTML:
<div class="artigo_nome"> <!-- here is the part that I need help -->
<p>
Computador Apple Imac 27P I5 3.5Ghz/8Gb/1Tb Md096Po/A
</p>
</div>
<div class="artigo_definicoes round_corner">
<div class="separador_artigo_imagem">
<img src="img/artigos/fones.png" class="imagem_artigo" alt="artigo"/>
</div>
<div class="artigo_info">
Computador Apple Imac 27P I5 3.5Ghz/8Gb/1Tb Md096Po/A<br />
<span class="ler_mais">ver mais</span><br />
<span class="comparar">adicionar para comprar</span>
</div>
</div>
CSS:
.categoria_lista_artigos .artigo_nome{
color:#6e6e6e;
width:234px;
height:34px;
margin-left: -2px;
border-radius:5px 5px 0 0;
border-left:2px #aeaeae solid;
border-right:2px #aeaeae solid;
border-bottom:1px #aeaeae solid;
/*background-color:#E6E6E6;*/
position:relative;
font-weight: 600;
-webkit-box-shadow: 0px -3px 5px #e2e2e2;
-moz-box-shadow: 0px -3px 5px #e2e2e2;
box-shadow: 0px -3px 5px #e2e2e2;
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #cfcfcf 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#cfcfcf)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#cfcfcf 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#cfcfcf 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#cfcfcf 100%); /* IE10+ */
background: linear-gradient(to bottom, #ffffff 0%,#cfcfcf 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cfcfcf',GradientType=0 ); /* IE6-9 */
}
.categoria_lista_artigos .artigo_nome div {
margin: auto;
padding: 4px 13px;
vertical-align: middle;
line-height:13px;
}
If you need anything more, just say.

What you want is a shrink-to-fit width for your text line.
You can simplify your HTML as follows:
<div class="artigo_nome">
Computador Apple Imac 27P I5 3.5Ghz/8Gb/1Tb Md096Po/A
</div>
and apply the following CSS rules:
.artigo_nome {
border: 1px dotted blue;
display: inline-block;
max-width: 250px;
padding: 10px;
word-break: break-all; /* optional */
}
which gives the following result: http://jsfiddle.net/audetwebdesign/vVhWR/
The inline-block will give you a shrink-to-fit width up to the specified max-width value.
If you want to be able to wrap long words, add the word-break property.
Note: I left out the border/shadow/background styling for simplicity, but you can easily add them back in.

Related

Navigation Hover/Active Box aren't covering the contents

I already tried searching all over Stack Overflow and unfortunately didn't find any possible solution thus I decided to post a question.
So I was using bootstrap 3 for the first time and I uses their navigation style, the .navbar .navbar-default and they have there own height which make the .active class on the bootstrap able to cover the whole navigation, but in my case I modify and create a new class and called it .own-navbar I added this css
.own-navbar{
height: 68px;
background: #ffffff;
background: -moz-linear-gradient(top, #ffffff 0%, #e2e2e2 48%, #cccccc 50%, #eaeaea 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(48%,#e2e2e2), color-stop(50%,#cccccc), color-stop(100%,#eaeaea));
background: -webkit-linear-gradient(top, #ffffff 0%,#e2e2e2 48%,#cccccc 50%,#eaeaea 100%);
background: -o-linear-gradient(top, #ffffff 0%,#e2e2e2 48%,#cccccc 50%,#eaeaea 100%);
background: -ms-linear-gradient(top, #ffffff 0%,#e2e2e2 48%,#cccccc 50%,#eaeaea 100%);
background: linear-gradient(to bottom, #ffffff 0%,#e2e2e2 48%,#cccccc 50%,#eaeaea 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=0 );
}
and made a lot of changes and here's my navigation bar looks like
http://i.stack.imgur.com/EXx4H.png
As you guys see it, the .active class on bootstrap 3 isn't covering the whole thing. So how can I fix it?
Here's my full HTML code
<!DOCTYPE html>
<html lang="en">
<head>
<title>sWIFI - Free Wifi Hotspot!</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!-- SCRIPT -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<!-- NAVIGATION BAR -->
<div class="container">
<nav class="navbar navbar-default own-navbar">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<img src="img/se" class="se" title="Free Wifi Hotspot" />
<h6>se</h6>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li><img src="img/seperator.png" /></li>
<li class="active"><a class="red"href="#">HOME</a></li>
<li><img src="img/seperator.png" /></li>
<li>ABOUT</li>
<li><img src="img/seperator.png" /></li>
<li>CONTACT US</li>
<li><img src="img/seperator.png" /></li>
</ul>
<div class="search navbar-right">
<form class="navbar-form" role="search">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search" name="srch-term" id="srch-term">
<div class="input-group-btn">
<button class="btn btn-default search-btn" type="submit">Go!</button>
</div>
</div>
</form>
</div>
</div>
</div>
</nav>
</div>
<!-- END OF NAVIGATION BAR -->
</body>
</html>
and my full CSS Code
/** CSS STYLING SPECIALLY MADE FOR sWIFI and CODED by urielD3 **/
/** Defaults **/
body{
background-color: #f6f6f6;
}
/** NAVIGATION BAR & MENU **/
.own-navbar{
height: 68px;
background: #ffffff;
background: -moz-linear-gradient(top, #ffffff 0%, #e2e2e2 48%, #cccccc 50%, #eaeaea 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(48%,#e2e2e2), color-stop(50%,#cccccc), color-stop(100%,#eaeaea));
background: -webkit-linear-gradient(top, #ffffff 0%,#e2e2e2 48%,#cccccc 50%,#eaeaea 100%);
background: -o-linear-gradient(top, #ffffff 0%,#e2e2e2 48%,#cccccc 50%,#eaeaea 100%);
background: -ms-linear-gradient(top, #ffffff 0%,#e2e2e2 48%,#cccccc 50%,#eaeaea 100%);
background: linear-gradient(to bottom, #ffffff 0%,#e2e2e2 48%,#cccccc 50%,#eaeaea 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=0 );
}
.own-navbar .container-fluid .navbar-header .se{
margin: 2px 0px 0px 5px;
}
.own-navbar .container-fluid .navbar-header h6{
font-family: Verdana;
font-size: 12px;
color: #363636;
font-weight: bold;
text-shadow: 1px 1px 2px #7A7A7A;
margin: -6px 0px 0px 55px;
cursor: default;
}
li:hover{
/* margin: -7px 0 0 0;
height: 68px; */
background: #f3f3f3;
background: -moz-linear-gradient(top, #f3f3f3 0%, #f1f1f1 53%, #e1e1e1 53%, #ffffff 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f3f3f3), color-stop(53%,#f1f1f1), color-stop(53%,#e1e1e1), color-stop(100%,#ffffff));
background: -webkit-linear-gradient(top, #f3f3f3 0%,#f1f1f1 53%,#e1e1e1 53%,#ffffff 100%);
background: -o-linear-gradient(top, #f3f3f3 0%,#f1f1f1 53%,#e1e1e1 53%,#ffffff 100%);
background: -ms-linear-gradient(top, #f3f3f3 0%,#f1f1f1 53%,#e1e1e1 53%,#ffffff 100%);
background: linear-gradient(to bottom, #f3f3f3 0%,#f1f1f1 53%,#e1e1e1 53%,#ffffff 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3f3f3', endColorstr='#ffffff',GradientType=0 );
}
.asd{
color: red;
}
.own-navbar .container-fluid div ul{
margin: 7px 0px 0px 65px;
}
.own-navbar .container-fluid div ul li a{
color: #3B3B3B;
font-size: 15px;
font-family: Verdana;
font-weight: bolder;
}
.own-navbar .container-fluid div ul li img{
margin: -8px 0 0 0;
}
.own-navbar .container-fluid div .search form input{
border-radius: 20px;
width: 305px;
margin: 6px 0 0 0;
}
.own-navbar .container-fluid .search form .search-btn{
border-radius: 20px;
margin: 3px 0 0 15px;
}
Edit:
Click me for the Actual Website
#Christina is correct, but possibly a more direct answer to your question is you set your .own-navbar height to 68, but that isn't really doing what you want. Your separator image height is 68px so your navbar is already at the image height. The use of the image in the menu nav list will cause problems when the navbar collapse class is added on smaller screens.
You could use:
ul.nav.navbar-nav li {
height: 68px;
}
to try to fix the button height, but that will lead to still other issues.
You could remove the separator image and use css to create separators between buttons. The following rule is going to cause additional problems as well.
.own-navbar .container-fluid div ul {
margin: 7px 0 0 65px;
}
That 7px top margin will give you headaches. Adjust height with line height or padding as Christina suggested. You can solve the left margin problem by setting min-width on div.navbar-header.
Let Bootstrap determine the final nav dimensions, responsive behavior will work better that way.

How to get rid of white space that appears below and above text inside a td tag

What I am attempting to accomplish is that the background changes when a user hovers over the td element. What the my current code is doing is shown in the picture below:
I am trying to get rid of the white space so that the gradient fills the entire td/cell.
The code below is for one row of my table.
<tr>
<td class="itemTrue">
<h4>AMA<br>ROUND ALUMINUM MAST ARM SERIES</h4>
</td>
<td class="itemTrue">
<h4>AVPL-SSA<br>4 INCH SQUARE STRAIGHT ALUMINUM SERIES</h4>
</td>
<td class="itemTrue">
<h4>SMA<br>ROUND ALUMINUM MAST ARM SERIES</h4>
</td>
<td class="itemTrue">
<h4>AVPL-SSS<br>4 INCH SQUARE STRAIGHT STEEL SERIES</h4>
</td>
</tr>
Here is the CSS code that affects these tags.
table {
position: relative;
top: 50px;
box-shadow: 1px 1px 8px 7px #234229;
width: 1300px;
cell-spacing: 0px;
padding: 0px;
}
table, td, tr {
border: 1px solid black;
font-family: 'Roboto Slab', serif;
font-size: 12px;
border-spacing: 0px;
padding: 0px;
line-height: 14px;
vertical-align: baseline;
}
td {
text-align: center;
margin: 0px;
padding: 0px;
}
#armPoles > td {
border-bottom: 5px double black;
margin: 0px;
}
.itemTrue :hover {
color: white;
background: #e4e4e4;
background: -moz-linear-gradient(top, #e4e4e4 0%, #295534 73%, #1d3923 88%, #000000 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e4e4e4), color-stop(73%,#295534), color-stop(88%,#1d3923), color-stop(100%,#000000));
background: -webkit-linear-gradient(top, #e4e4e4 0%,#295534 73%,#1d3923 88%,#000000 100%);
background: -o-linear-gradient(top, #e4e4e4 0%,#295534 73%,#1d3923 88%,#000000 100%);
background: -ms-linear-gradient(top, #e4e4e4 0%,#295534 73%,#1d3923 88%,#000000 100%);
background: linear-gradient(to bottom, #e4e4e4 0%,#295534 73%,#1d3923 88%,#000000 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e4e4e4', endColorstr='#000000',GradientType=0 );
}
h4 {
font-weight: normal;
}
Your missing a tag for your H4, why not set that as well. Also not sure which tag is messing up you can set different colour backgrounds to help you debug and learn.
So, try adding 'padding:0' etc etc to your css.
If you're putting the gradient on your <h4>'s on hover, you will need to take off the default margin h4 { margin: 0; }, alternatively you could put the hover effect on the td itself: td:hover { background: blue; }
I think you need just
td:hover {
background: linear-gradient(...);
}
I forgot that h4 can have margins and setting those margins up fixed the issue.
Thank you very much to everyone that came to help! =)

The Html ordered List is displaying in next line

I have used html and css code below My aim is to display master,image and list in single line.but list is displaying in next line so pls help me to rectify the issue.
HTML
<h2> Master <img src="<?php echo base_url('img/courses_title.jpg'); ?>" HEIGHT="55" WIDTH="55" BORDER="0" /><div align="center"> <ul class="Data"><li> 1.Course code and name is created </li></ul></h2>
CSS
<style type="text/css">
.pg-normal {
color: green;
font-weight: normal;
text-decoration: none;
cursor: pointer;
background: #e3e3e3;
border: 1px solid #cac9c9;
padding: 4px 7px;
}
.pg-selected {
color: black;
font-weight: bold;
text-decoration: underline;
cursor: pointer;
}
.Data {
width:20%;
margin: 10px;
-moz-border-radius : 10px; /* Firefox */
-webkit-border-radius : 10px; /* Safari & Chrome */
-khtml-border-radius : 10px; /* Linux browsers */
border-radius : 10px; /* CSS3 compatible browsers */
border-style: solid;
border-width: 1px;
border-color: #cccccc;
padding: 0px;
border-spacing: 0px;
overflow: hidden;
background: #eeeeee; /* Old browsers */
background: -moz-linear-gradient(top, #eeeeee 0%, #cccccc 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* IE10+ */
background: linear-gradient(to bottom, #eeeeee 0%,#cccccc 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
}
</style>
Please take a look at this JsFiddle.
I have added an example based off your above HTML, here is the HTML code:
<h2>Master</h2>
<img src="/path/" alt="example" />
<ul>
<li>1. Course code and name is created</li>
</ul>
CSS:
img, ul {
float: left;
}
ul {
margin: 0;
}
It's displaying in the next line because it is a block element.
Most HTML elements are defined as block level elements or as inline
elements.
Block level elements normally start (and end) with a new line when
displayed in a browser.
Inline elements are normally displayed without starting a new line.
That is the main concept, as to why your li appears on separate lines.
if you want your li element to appear on the same line, you'll have to implement it in the inline form, like so:
<li style="display:inline;">content</li>
if you want all your lis to be inline do this:
<style>
li{
display:inline;
}
<style>
just add it to the head section of your page.
try this one
http://jsfiddle.net/nY6eu/1/
add this to your code
css file:
.ul{
list-style:none;
}
.ul li{
display:inline-block;
}
html file:
<ul class="ul"><li><h2> Master </h2></li>
<li><img src="http://img.talkandroid.com/uploads/2013/03/wpid-photo-jan-14-2013-1115-am.jpg" HEIGHT="55" WIDTH="55" BORDER="0" /></li> <li class="Data"> 1.Course code and name is created </li>
</ul>

Why is this CSS3 gradient breaking my page layout in IE?

It took me a long time to figure out what was breaking my layout (the issue is only in ie). I am using html5 (with moderizr) and I figured out the layout was fine if I removed the following from the css:
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#f5ede1, endColorstr=#f5ede1);
I want the gradient there for the design, though... Why does the filter break the layout in Internet Explorer?
The html for the header is:
<header>
<section id="header">
<div id="logo"><img alt="Congress" src="../img/congress-logo.png"></div>
<div id="ons-logo"><a target="_blank" href="http://ons.org"><img width="175" height="77" alt="Oncology Nursing Society" src="../img/ons-logo.png"></a></div>
</section>
<nav id="main-nav">
<ul>
<li id="register"><span>Register</span>
<ul class="subNav">
<li>subnav</li>
</ul>
</li>
<li id="exhibit"><span>Exhibit Hall</span>
<ul class="subNav">
<li>subnav</li>
</ul>
</li>
<li id="networking"><span>Networking</span>
<ul class="subNav" style="display: none;">
<li>subnav</li>
</ul>
</li>
</ul>
</nav>
</header>
And this is my CSS:
img {
border: 0;
width: 100%;
display: block;
max-width: 100%;
}
header{
background: #f5ede1; /* Old browsers */
background: -moz-linear-gradient(top, #f5ede1 0%, #fbf8f3 48%, #f5ede1 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5ede1), color-stop(48%,#fbf8f3), color-stop(100%,#f5ede1)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #f5ede1 0%,#fbf8f3 48%,#f5ede1 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #f5ede1 0%,#fbf8f3 48%,#f5ede1 100%); /* Opera 11.10+ */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#f5ede1, endColorstr=#f5ede1); /*IE6-9 */
background: -ms-linear-gradient(top, #f5ede1 0%,#fbf8f3 48%,#f5ede1 100%); /* IE10+ */
padding-bottom: 10em;
position:relative;
max-width: 100%;
margin: 0px;
}
.ie7 header/*, .ie8 header*/{
padding-bottom:0px;
}
section#header{
max-width: 900px;
margin: auto;
position: relative;
}
div#logo {
float: left;
margin: 1em 0 0 2em;
max-width:365px;
}
.ie8 div#logo{
width:365px;
}
div#ons-logo{
max-width: 175px;
padding-left: 23em;
float:left;
}
.ie8 div#ons-logo{
width: 175px;
}
nav#main-nav {
margin-top: -30px;
padding: 0.5em 5% 0.5em 35%;
width: 60%;
float: left;
background: #d56d2a; /* Old browsers */
background: -moz-linear-gradient(top, #d56d2a 1%, #f47d31 10%, #f47d31 85%, #ea8f52 100%, #f47d31 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#d56d2a), color-stop(10%,#f47d31), color-stop(85%,#f47d31), color-stop(100%,#ea8f52), color-stop(100%,#f47d31)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #d56d2a 1%,#f47d31 10%,#f47d31 85%,#ea8f52 100%,#f47d31 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #d56d2a 1%,#f47d31 10%,#f47d31 85%,#ea8f52 100%,#f47d31 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #d56d2a 1%,#f47d31 10%,#f47d31 85%,#ea8f52 100%,#f47d31 100%); /* IE10+ */
background: linear-gradient(to bottom, #d56d2a 1%,#f47d31 10%,#f47d31 85%,#ea8f52 100%,#f47d31 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d56d2a', endColorstr='#f47d31',GradientType=0 ); /* IE6-9 */
border-bottom: 2px solid #F5D8C7;
border-top: 2px solid #F5D8C7;
box-shadow: 0 10px 9px rgba(0, 0, 0, 0.55);
}
add this meta tag in header for campatibility with IE9:
<meta http-equiv="X-UA-Compatible" content="IE=9" />
Try to generate your gradient with colorzilla:
http://www.colorzilla.com/gradient-editor/
It's very simple.

Images & form elements automatically disappearing?

I'm having a rather weird issue in IE7 & IE8, when i load one of my websites various items render as expected then after about 1 second they all disappear. This includes form elements, background colors & background images (set via css)
You can have a look yourself at www.michaelmeahanjoinery.co.uk (assuming you are viewing in ie7/8)
I've exhausted my list of usual fixes so im a bit stumped at the moment. I should also probably mention that they both render correctly on my development machine, but when the live site is viewed it craps out.
Heres the code for the form.
<form class="form" method="POST" action="index.php?module=contact">
<p class="name">
<input type="text" name="name" id="name" value="<?php echo $name; ?>"/>
<label for="name">Name</label>
</p>
<p class="email">
<input type="text" name="email" id="email" value="<?php echo $email; ?>"/>
<label for="email">E-mail</label>
</p>
<p class="phone">
<input type="text" name="phone" id="phone" value="<?php echo $phone; ?>"/>
<label for="web">Phone</label>
</p>
<p class="comments">
<textarea name="comments"></textarea>
</p>
<p class="submit">
<input type="submit" value="Send" />
</p>
<input type="hidden" id="send" name="send" value="1">
</form>
Heres the CSS for the form.
input, textarea {
padding: 9px;
margin-top:0px;
margin-bottom:2px;
border: solid 1px #E5E5E5;
outline: 0;
width: 200px;
background: white;
background: #FFFFFF url('bg_form.png') left top repeat-x;
background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
-moz-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
-webkit-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
}
textarea {
width: 400px;
max-width: 400px;
height: 176px;
margin-bottom:0px;
}
input:hover, textarea:hover,
input:focus, textarea:focus {
border-color: #C9C9C9;
-webkit-box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 8px;
}
.form label {
margin-left: 10px;
}
.submit input {
width: auto;
padding: 9px 15px;
background: #582404;
border: 0;
font-size: 14px;
color: #FFFFFF;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
cursor:pointer;
}
UPDATE
I have been playing about with it and have discovered something a bit unusual. First of all this only happens on the live site, so rather than me playing about with the live site, i duplicated the website as is into a sub-directory.
I done this so i could play around with the code and see what it actually would look like, but when i went to the sub-directory it actually displays perfectly fine??
Could this be some sort of apache directory issue?
Not displaying correctly.
http://www.michaelmeahanjoinery.co.uk/index.php?module=contact
Displaying correctly.
http://www.michaelmeahanjoinery.co.uk/test/index.php?module=contact
yes, i verified your site. you not added separate class for IE to display gradient, so please add the below code in css after that it will display correct in IE7 and IE 8
background: #ffffff; /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZWVlZWUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ffffff 0%,#eeeeee 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%,#eeeeee 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 100%); /* IE10+ */
background: linear-gradient(to bottom, #ffffff 0%,#eeeeee 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 ); /* IE6-8 */