Force banner to have specific width and height

The width does not change only the height does

Can you post a link to your site so that we can see the full code and see what’s going on here?

[FONT=Verdana]OK, thanks, I got your PM with the link. You still have in your code


<style>
.adv {
  width: 1px !important;
height: 10px !important;
  background: black;
}
</style>

Change that 1px to 10px and the width will change.

Note that round about line 96 you also have

<style>
adv {
  width: 100px !important;
height: 10px !important;
  background: black;
}
</style>

That shouldn’t be there and you ought to delete it.[/FONT]

i’ve removed


<style>
adv {
  width: 100px !important;
height: 10px !important;
  background: black;
}
</style>


and set width to 10px
but the width is still 100%

I still don’t get why you want it so small, because it’s going to look awfully weird. Seems like you don’t want it there at all. The div that you are setting to width: 10px is indeed going to that width, but the contents inside it are not being reduced in size, but are hanging out to their normal width. You could stop that by adding overflow: hidden; to the code above:

.adv {
  width: 100px !important;
  height: 10px !important;
  background: black;
  [COLOR="#FF0000"]overflow: hidden;[/COLOR]
}

You will only get a small, ten pixel square box doing this, though. What’s your goal?

now it works! thank you so much ralph.m for you precious help, much appreciated :wink: