CSS Background
Hey all,
I have a CSS sheet that has the layers with their respective background images for each, but there's one layer that I want to remove the background image from, I know how to do this, but the catch is, I only want to remove the background on one single page without messing around with the css sheet and wind up removing it on all pages.....any ideas?
Thanks in advance
Allen
Paula,
Sorry, I failed to ask you one more question, when creating a layout using layers (div tags), I like to use the "green" guide lines in the design view of Dreamweaver, have you ever seen where when you drag a layer to the guide line and try to get it to snap to it, it does snap to it, but it looks like the layer sort of "jumps" away from it, not staying in place and making it look like it didn't snap to the line....any idea what's up with that?
Thnaks again so much for your help
Allen
Similar Messages
-
Spry Sliding Panel bugs with Flash SWF, iFrames, CSS background images
Greetings,
I'm working on a site right now that is build with Spry 1.6
Sliding Panels. On the home panel I have integrated a looping SWF,
and scrolling iFrames on the Overview panel. After extensive
research on these forums, I'm still scratching my head at a few
bugs listed below:
• Firefox (MAC v2.0.0.14)
- The SWF on the home panel doesn't hide properly when
sliding to a different panel. I have set 'wmode opaque' parameters
to the flash file, but this seems to have not resolved the issue.
- Additionally, I've noticed that sometimes the SWF will not
finish sliding into the correct position when clicking to the home
panel (the SWF will stop sliding several pixels left of the
original positioning).
- The SWF (which happens to be a loop animation) resets every
time the home panel is visited. In my testing, this does not happen
in any other browser.
- On the Overview panel, scrolling iFrames are used on the
"Staff Profiles". These iFrames don't hide properly when clicking
through other panels, as the scroll bars are still viewable.
- Overall, the sliding animation is a bit choppy compared to
all other browsers. I can live with this, but I wonder if I have
improper code somewhere?
• Opera (MAC v9.27)
- Same issue as above concerning the fact that the SWF
appears outside of the sliding panel view port.
• IE 6
- CSS background images flash during the sliding panel
animation.
* Site page links *
Main URL
Home
Page iFrame
Overview
Page iFrame
* CSS *
Main
site-wide CSS
Sliding
Panels CSS
* Scripts *
Sliding
Panels Sript
Any suggestions, pointers would be much appreciated!
Cheers,
ChrisGreetings,
I'm working on a site right now that is build with Spry 1.6
Sliding Panels. On the home panel I have integrated a looping SWF,
and scrolling iFrames on the Overview panel. After extensive
research on these forums, I'm still scratching my head at a few
bugs listed below:
• Firefox (MAC v2.0.0.14)
- The SWF on the home panel doesn't hide properly when
sliding to a different panel. I have set 'wmode opaque' parameters
to the flash file, but this seems to have not resolved the issue.
- Additionally, I've noticed that sometimes the SWF will not
finish sliding into the correct position when clicking to the home
panel (the SWF will stop sliding several pixels left of the
original positioning).
- The SWF (which happens to be a loop animation) resets every
time the home panel is visited. In my testing, this does not happen
in any other browser.
- On the Overview panel, scrolling iFrames are used on the
"Staff Profiles". These iFrames don't hide properly when clicking
through other panels, as the scroll bars are still viewable.
- Overall, the sliding animation is a bit choppy compared to
all other browsers. I can live with this, but I wonder if I have
improper code somewhere?
• Opera (MAC v9.27)
- Same issue as above concerning the fact that the SWF
appears outside of the sliding panel view port.
• IE 6
- CSS background images flash during the sliding panel
animation.
* Site page links *
Main URL
Home
Page iFrame
Overview
Page iFrame
* CSS *
Main
site-wide CSS
Sliding
Panels CSS
* Scripts *
Sliding
Panels Sript
Any suggestions, pointers would be much appreciated!
Cheers,
Chris -
CSS background cover vertically?
i want to do a site with a large background image, but when the browser its to small the image repeat itself.
does anybody have a nice idea of how to fix it?
should i use a color gradient to mix them?
or set the size or the proportion of the image to something?
is there a css background property to cover vertically?I don't like to use extra large images for backgrounds as they take up too much bandwidth which creates slower loading pages. Also, you can't predict how small or large your end user's viewport is so your image may not display appropriately on many web devices (mobile phone, tablet, laptop, ultra-wide).
The best backgrounds for web pages are small seamless tiles or gradient slices that repeat horizontally and vertically to fill the browser's viewport, regardless of size.
body {
background-image: url(BG-image,jpg;
To repeat an image vertically
body {
background-image: url(BG-image,jpg;
background-repeat: y;
To repeat an image horizontally
body {
background-image: url(BG-image,jpg;
background-repeat: x;
More on backgrounds:
http://alt-web.com/Backgrounds.shtml
http://w3schools.com/css/css_background.asp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
i have a css background gradient... but when i scroll, the gradient stick in the loading height.
what can i do to have the gradient correct always?
html {
height:100%;
body {
height:100%;
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
background: -moz-linear-gradient(top, rgba(84,84,84,0.9) 0%, rgba(0,0,0,0.9) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(84,84,84,0.9)), color-stop(100%, rgba(0,0,0,0.9)));
background: -webkit-linear-gradient(top, rgba(84,84,84,0.9) 0%, rgba(0,0,0,0.9) 100%);
background: -o-linear-gradient(top, rgba(84,84,84,0.9) 0%, rgba(0,0,0,0.9) 100%);
background: -ms-linear-gradient(top, rgba(84,84,84,0.9) 0%, rgba(0,0,0,0.9) 100%);
background: linear-gradient(top, rgba(84,84,84,0.9) 0%, rgba(0,0,0,0.9) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e6545454', endColorstr='#e6000000', GradientType=0 );
margin: 0;
padding: 0;
color: #000;Don't know about the Javascript - you basically would need to create a listener that would detect when the window size changed and the reapply the CSS gradients. One issue with that approach is that it can become a bit of a resource hog.
For approach #2 check out: http://www.designbyfire.com/ - scroll and look at the bottom of his text content - he's using a transparent png graphic to create a kind of fade gradient effect (it's very subtle). Take a look at the source to see how he did it. Also this might be helpful:
http://www.1stwebdesigner.com/inspiration/beautiful-gradient-effects-on-web-design-researc h-part-2/ - a bunch of sites that use this technique for background gradients.
But basically create a gradient graphic in Photoshop (you only need a small sliver graphic as we can repeat it across the x-axis). Then in your CSS do something like this:
body{
background:#ccc url("path/to/gradientImage.jpg") bottom repeat-x;
Change the background color (#ccc) to match the top of your gradient image color. "bottom" tells the browser to attatch the graphic to the bottom of the body tag, "repeat-x" tells the browser to repeat it across the x-axis (horizontal). If you've done it right, your background image will blend into the background color creating a nice gradient effect. -
Firefox don't load CSS Background at all on any Websites.
Hey All
I am running Firefox12 on Windows 7 ( 64 bit )
Firefox does not load ANY css bg images, css background colors and text colors. Layout is all completely normal, but all colour and background stuff doesn't work (links are all blue, pages all white, etc.). at all on any sites.
I've tried disabling all add-ons and restarting firefox and restarting the computer and clearing the cache and all that good stuff.
Settings are not blocking images and are surely loading all image content automatically and all.
Also Checked
Firefox > Preferences > Content : Fonts & Colors: Colors > [[X]"Allow pages to choose their own colors, instead of my selections above"
So that's not it
I also use Firebug, but clearing the console does nothing. Neither does uninstalling Firebug. I noticed that in the Firefox Error Console I receive warnings for these issues. For example on this page I see numerous warning like:
Look below for Few Screenshots of Error ConsoleMake sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
*Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
*http://kb.mozillazine.org/Website_colors_are_wrong
*http://kb.mozillazine.org/Websites_look_wrong -
Spry Menu Bar using CSS background image without losing submenu ( V) indicators
Spry menu bar sets the down and side submenu indicators using
a positioned background image. I have a requirement to use a
specific background image yet must retain the > and v submenu
indicators. Without having to generate full width custom background
images for each of the menu item types to include the side and down
menu indicators, is there anyway to use a generic background image
and show the indicators using just CSS?Don't use reserved words in JS
var event = new Spry.Data.XMLDataSet("events.xml", "catalog/event", {sortOnLoad: "date", sortOrderOnLoad: "descending"});
event is such a reserved word. If you change this to event1 then all is well.
I hope this helps.
Ben -
CSS- Background img not showing up in container
Hello, I am new to css but not to webpages. I used to design
pages using tables and now I want to learn and design using css.
But I'm having trouble and I figure its a quick fix. Note this
website is not on line I am doing my test use IE 7 and Firefox ver
2 PC Ver.
Q: I'm trying to design a website for a client and I am have
trouble try to get my background img to show up in my #container.
Here is sample of my basic layout. Hope some could help me.
@charset "utf-8";
body {
background-color: #271a0b;
background-image: url(../images/bgStrip.gif);
background-repeat: repeat-x;
#container {
width: 100%;
height: 900px;
overflow: hidden;
background-image: url(/images/backGround.jpg);
background-repeat: no-repeat;
background-position: 0;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<link href="asset/screen.css" rel="stylesheet"
type="text/css" />
</head>
<body>
<div id="container">Content for id
"container" Goes Here</div>
</body>
</html>
body background is working. Note: Got the codes samples from
CSS Cookbook, good book learning allot but can't seem to get it to
work. Hope some could help me.If the page in question is one level below the root of the
site, and if the
images folder is at the same level as the root of the site,
then both links
would be correct.
Also, since background-position defaults to "0", there's no
reason to
restate it.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Virginia Carter" <[email protected]>
wrote in message
news:[email protected]...
> Without seeing the page on the web, it's somewhat
difficult to see exactly
> where the problem is, but this is curious:
>
> body {
> background-color: #271a0b;
> background-image: url(../images/bgStrip.gif);
> background-repeat: repeat-x;
> }
>
> #container {
> width: 100%;
> height: 900px;
> overflow: hidden;
> background-image: url(/images/backGround.jpg);
background-repeat:
> no-repeat;
> background-position: 0;
> }
>
> It's looking in two different places for those images:
>
> ../images and /images
>
> Check that and then see if you still have troubles.
>
> --
>
> Virginia Carter
> Carolina Web Creations
> ======================
> www.carolinawebcreations.biz
>
> borgru12 wrote:
>> Hello, I am new to css but not to webpages. I used
to design pages using
>> tables and now I want to learn and design using css.
But I'm having
>> trouble and I figure its a quick fix. Note this
website is not on line I
>> am doing my test use IE 7 and Firefox ver 2 PC Ver.
>>
>> Q: I'm trying to design a website for a client and I
am have trouble try
>> to get my background img to show up in my
#container. Here is sample of
>> my basic layout. Hope some could help me.
>> @charset "utf-8";
>>
>> body {
>> background-color: #271a0b;
>> background-image: url(../images/bgStrip.gif);
>> background-repeat: repeat-x;
>> }
>>
>> #container {
>> width: 100%;
>> height: 900px;
>> overflow: hidden;
>> background-image: url(/images/backGround.jpg);
background-repeat:
>> no-repeat;
>> background-position: 0;
>> }
>>
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN"
>> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>> <html xmlns="
http://www.w3.org/1999/xhtml">
>> <head>
>> <meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
>> <title>Untitled Document</title>
>>
>> <link href="asset/screen.css" rel="stylesheet"
type="text/css" />
>> </head>
>>
>> <body> <div id="container">Content for
id 'container' Goes Here</div>
>>
>> </body>
>> </html>
>>
>>
>> body background is working. Note: Got the codes
samples from CSS
>> Cookbook, good book learning allot but can't seem to
get it to work. Hope
>> some could help me.
>> -
Hello all.
Newbie here, asking if it is possible for a user to
change/replace background images through Contribute CS3 that are
called by CSS stylesheet? All images are setup this way and I don't
want to have to use tables just so they can be able to change
images. Any suggestion or assistance is greatly appreciated.Yes, I recently ran into a similar problem!
2 workaround I like...
a) simply put the image file into your image directory and reference it using /i/image.jpg etc.
b) use this whitepaper by John:
http://jes.blogs.shellprompt.net/2007/05/18/apex-delivering-pages-in-3-seconds-or-less/
And make a file download script that you can use - works very well for me! -
Hi
I know that I am overlooking something incredibly simple,
however I am really new to Dreamweaver and can't seem to figure out
where I'm going wrong.
I basically want to use CSS to make the background of my page
grey. The rule I have is quite simply:
.background {
background-color: #CCCCCC;
However when I apply it to the page, all that appears is a
row of grey at the very top and that's it. No matter what I try I
just can't seem to make it cover the entire background.
If anyone could help me out, that would be great.
Thanks
NicolaIt *should* work the same, either externally linked or
internally embedded.
The fact that it doesn't means you have made an error
somewhere. The fact
that you don't have an identification of the error means that
you have not
provided enough information.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Nic26" <[email protected]> wrote in message
news:g4vaig$kdj$[email protected]..
> Thank you!
>
> I have managed to get it working.
>
> I had previously created the CSS as an external style
which wasn't
> working,
> however as soon a I made it an internal style with the
code you had all
> given
> me, it worked.
>
> Thanks again!
> Nicola
> -
Css background-position problem
Hello, I get a problem with this style:
<style type="text/css" media="screen">
html {
margin: 0px;
padding: 0px;
height: 100%;
width: 100%;
body {
background-color:#ffffff;
background-image:url(images/myimage.jpg);
background-position: center bottom;
background-repeat:repeat-x;
</style>
In ie7 works fine, in firefox 2 the bottom position doesn't
work...
Any suggestion ?
Thanks
howdyHello, this is the page, simply copy and paste.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>test background</title>
<style type="text/css" media="screen">
html {
margin: 0px;
padding: 0px;
height: 100%;
width: 100%;
body {
background-color:#ffffff;
background-image:url(
http://img179.imageshack.us/img179/2401/backgroundkc8.jpg);
background-position: center bottom;
background-repeat:repeat-x;
#layer1{
text-align: center;
width: 300px;
margin-right: auto;
margin-left: auto;
border: 2px double #003333;
</style>
</head>
<body>
<div id="layer1">Lorem ipsum dolor sit amet,
consectetuer adipiscing
elit. Quisque cursus, justo a tincidunt volutpat, dui orci
feugiat
justo, at varius odio est quis turpis. Integer nisl enim,
condimentum
et, eleifend et, posuere quis, risus. Nam convallis. Integer
diam dui,
accumsan mattis, dignissim at, dictum rutrum, justo. Praesent
lacinia.
Cras a diam. Aenean quis elit. Duis mauris erat, aliquet nec,
malesuada
laoreet, aliquam sit amet, magna. Ut turpis metus,
sollicitudin ac,
fermentum non, pretium eu, augue. Nunc faucibus, leo eu
pharetra
ultrices, sem augue ultricies risus, at egestas velit lectus
ac velit.
Suspendisse pretium nibh dapibus turpis. Praesent felis mi,
vestibulum
eu, pellentesque et, consequat eu, ante. Nulla accumsan enim
et pede.
Suspendisse potenti.
Donec eget nulla. Proin et est. Integer volutpat, dolor
scelerisque
bibendum egestas, lacus dui venenatis odio, vitae varius
massa eros sit
amet ligula. Curabitur tellus. Curabitur ultricies volutpat
tellus. In
sodales. Duis cursus mi eu dui placerat porta. Mauris laoreet
turpis at
nunc. Vivamus volutpat, metus dignissim accumsan hendrerit,
turpis
turpis aliquet nulla, non viverra dui dui quis quam. Mauris
sem nunc,
laoreet in, elementum vitae, tempor a, libero. Cras ac turpis
sit amet
risus cursus ultrices. Sed id quam.
Nulla tortor ligula, adipiscing nec, ornare eu, gravida in,
justo. Sed
elementum vestibulum lectus. Mauris lectus mauris, convallis
nec,
posuere quis, lacinia at, felis. Vestibulum ante ipsum primis
in
faucibus orci luctus et ultrices posuere cubilia Curae;
Aenean cursus
quam eget dui. Maecenas sapien. Aenean pellentesque lobortis
mi. Quisque
tempor ipsum in libero. Pellentesque habitant morbi tristique
senectus
et netus et malesuada fames ac turpis egestas. Class aptent
taciti
sociosqu ad litora torquent per conubia nostra, per inceptos
himenaeos.
Quisque lacus tellus, ornare quis, euismod et, lacinia sed,
justo. Proin
auctor nisi sed tortor. Fusce in justo et nisl fermentum
vehicula.
Quisque urna felis, lacinia at, viverra in, fermentum ut,
lacus. Duis
tempus. Morbi bibendum libero vitae diam faucibus placerat.
Praesent eu sapien. Sed ut velit quis magna lobortis
malesuada.
Phasellus dignissim risus ac est. Pellentesque semper sem.
Donec porta
nulla nec quam. Pellentesque aliquet risus id quam. Proin
tincidunt erat
nec nunc. Praesent euismod fringilla ipsum. Donec ornare.
Vestibulum
ante ipsum primis in faucibus orci luctus et ultrices posuere
cubilia
Curae; Sed leo.
Proin non nisi non neque porta tempus. Proin varius velit eu
sapien.
Pellentesque pulvinar arcu id ante. Nunc eu diam. Phasellus
euismod,
felis in scelerisque pharetra, diam augue eleifend mi, a
rutrum mauris
arcu nec orci. Proin sed erat. Pellentesque et libero.
Aliquam ante
velit, ultrices ut, fermentum ac, cursus ut, est. Etiam vitae
nisl ac
metus cursus viverra. Proin non felis. Donec massa. Nullam
quam lectus,
pulvinar eget, condimentum at, tristique in, quam. Proin
vehicula
elementum diam. Proin sapien. Praesent suscipit, lorem at
dapibus
fringilla, orci elit facilisis lacus, at dictum augue velit
quis enim.
Mauris eu mauris. Aliquam rhoncus fermentum pede. Vestibulum
gravida
vulputate mauris.
Pellentesque consectetuer. Cras tellus justo, iaculis vitae,
semper at,
scelerisque porta, tortor. Pellentesque at mi sed tellus
pellentesque
ultricies. In quis pede. Integer vel tortor at dui elementum
suscipit.
Praesent interdum posuere odio. Integer mollis mattis ipsum.
Duis id
metus ut nulla molestie sagittis. Suspendisse faucibus urna
vel metus.
Sed bibendum, dolor sit amet rhoncus rutrum, lorem turpis
pharetra
tortor, quis viverra neque lorem eget massa. Lorem ipsum
dolor sit amet,
consectetuer adipiscing elit. Suspendisse vestibulum arcu
vitae odio.
Fusce enim lacus, porttitor nec, scelerisque non, viverra eu,
enim. Sed
mauris. In hac habitasse platea dictumst. Duis porta mauris
quis orci.
Donec suscipit turpis eu dui egestas suscipit. Suspendisse
potenti. Cum
sociis natoque penatibus et magnis dis parturient montes,
nascetur
ridiculus mus. In hac habitasse platea dictumst.
Cras in arcu a mi iaculis ultricies. Pellentesque sed lorem
at sem
euismod blandit. Nullam pede lacus, interdum eu, aliquam a,
pretium vel,
sem. Pellentesque fringilla leo feugiat nibh. Cras non enim.
Donec
luctus ante vel diam. Mauris volutpat sapien eget nunc. Donec
nec lectus
nec leo iaculis fringilla. Sed felis magna, cursus et,
hendrerit sit
amet, pretium at, sapien. Vivamus ornare neque facilisis
arcu. Vivamus
nisi leo, varius ac, sodales ut, dapibus eget, eros.
</div>
</body>
</html> -
I recently purchased a new computer running Windows 7 professional 64 bit with a Pentium G630 2.7 ghz processor and 4GB memory on an ASUS P8H61-MX with integrated Intel graphics. Firefox and also Waterfox does not appear to be rendering a lot of background web information. To my mind it seems not to be taking account of all CSS instructions which I establish by checking my own web sites where background colour and images are not being shown. I run another Windows 7 Professional system 32 bit which is OK as is Opera and Safari on this system which leads me to believe it is a browser problem with 64 bit OS but then it still happens with Waterfox.
I use Firefox on a Windows 7 64bit sytem with no problems. It is probably more likely to relate to your Firefox settings, or some software extension you use.
* see [[websites look wrong]] -
I'm trying to have a color background that extends to the
edge of the browser. For some reason I'm not getting the same
results in different size monitor screens.... not browsers...
different screens. For example.
If I include html {height: 100%;} ... looks great in my 23"
widescreen.... but leaves an area of white toward the bottom of the
page on the 15" laptop screen (same browser). And the opposite, if
I don't include html {height: 100%;}, looks perfect in laptop
screen, and leaves a big white area on the large screen. This is
strange to me. The design is 100% compliant xhtml 1.0 strict and
css 2.1 according to w3c standards. any ideas?
Here's the CSS:
html {height: 100%;}
body {
text-align:center;
padding-top: 20px;
padding-bottom: 30px;
margin: 0px;
height: 100%;
background-color: #6C6C6C;He means a group selector, I suppose.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Walt F. Schaefer" <[email protected]> wrote in
message
news:gbf9oi$qga$[email protected]..
>>> I hate combined tags
>
> What's a combined tag?
>
> --
>
> Walt
>
>
> "jsteinmann" <[email protected]> wrote
in message
> news:gbf6a9$mqo$[email protected]..
>> after reviewing over and over, I realized I had a
combination css tag
>> with 3 elements, that included html, that was adding
the FFFFFF color. I
>> hate combined tags : )
>
> -
CSS -- background color doesn't show with scroll bar
I have a nav bar with a background-color that shows up fine if the image opens to the right size. If, however, the window opens small and I have to use the scroll bar to move things over, the color for the nav bar isn't there.
Any thoughts would be appreciated.
Here's the code:
HTML:
<body>
<div id="Global">
<div id="navHeader">
<div id="navBar">
<ul class="navStyle">
<li>Home</li>
<li>Chamber Info</li>
<li>Event Galleries</li>
<li>Contact Us</li>
<li>Join</li>
</ul>
</div>
</div>
</div>
</body>
CSS:
@charset "utf-8";
/* CSS Document */
padding:0 0;
margin:0 0;
body{
background-color:#f1eee3;
#Global{ margin:0 auto;}
#navHeader{
width:100%;
height:40px;
margin:0 auto;
background-color:#bfbfbf;
#navBar{
margin: 0 auto;
width:960px;
text-align:center;}
.navStyle{
font-family:"Eras Medium ITC",Arial, Helvetica, sans-serif;
font-size:18px;
padding-top:10px;
.navStyle li{
display:inline;
padding-left:20px;
padding-right:20px;Does this help?
#navHeader{
width:100%;
min-height:40px;
_height:40px; /**for IE6 only**/
margin:0 auto;
background-color:#bfbfbf;
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
CSS background to multiline heading
Hi all, I am trying to get a background colour behind the text of a heading by CSS. Sometimes it is a single line of text, which works fine, but as soon as it wraps, the background spreads right across the container it's in.
How can I get a colour block to sit behind the heading only allowing for a 5px padding on multi line heading.
Here is an example:
http://news.discovery.com
Notice on the middle image there is a heading (currently the walking dead) doing pretty much what I need, but here I notice it is broken down into a span per word. Is this really how I have to do it, and if so, how do you think they managed to break each word into a span?
Thanks.Here you go:
http://www.showmetransport.com/inc-HomePagePanel.php
It is responsive, so if you collapse the page, you see the effect of the text wrapping and how it suddenly switches from sitting behind the text on a single line to becoming a full width panel on multi lines.
There is already a version in place on the homepage, but although I have tried to make it responsive, the DW extension I used for it is difficult to work with. I actually found the widget spry tabbed panels easier to work with. -
So, i am working on my school's website in my Web Development Course, and everything seems to be going fine. I have enctountered a problem, i have a divider holding a table that is our navigation bar, and below it the content of the site. When it is in the design/code view, it looks fine as displayed in Figure 1
then when it is previewed in any browser, or in live view, it moves it down like 10ish pixels...there is no margins on any of the div either.
and here is the code for you to look at.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Belmont High School - Home</title>
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
.oneColFixCtr #container #content #center {
float: left;
height: 520px;
width: 400px;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
text-align: center;
background-image: url(images/center.png);
background-repeat: no-repeat;
background-position: center top;
.oneColFixCtr #container #content #right ul {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 11px;
.oneColFixCtr #container #content #right {
float: right;
height: 520px;
width: 200px;
font-family: Tahoma, Geneva, sans-serif;
background-repeat: no-repeat;
background-position: center top;
background-image: url(file:///U|/Fall-Spring2010_11/Web%20Design/BHS%20website%202011-2012/Homepage-%20Bing %20and%20Ryan/images/right.png);
padding: 0px;
margin: 0px;
.oneColFixCtr #container #content .left {
float: left;
height: 520px;
width: 200px;
font-family: Tahoma, Geneva, sans-serif;
font-size: 16px;
background-repeat: no-repeat;
background-position: center top;
text-align: left;
background-image: url(file:///U|/Fall-Spring2010_11/Web%20Design/BHS%20website%202011-2012/Homepage-%20Bing %20and%20Ryan/images/left.png);
.oneColFixCtr #container {
width: 800px; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
height: 1020px;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
background-color: #830A16;
.oneColFixCtr #container #bubble {
height: 300px;
background-repeat: no-repeat;
background-position: left top;
text-align: center;
font-family: "Times New Roman", Times, serif;
padding: 0px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
border-top-style: 0;
border-right-style: 0;
border-bottom-style: 0;
border-left-style: 0;
font-size: 17px;
font-style: normal;
background-image: url(images/bubble.png);
margin-top: 5px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
.oneColFixCtr #navigation {
height: 30px;
.oneColFixCtr #container #content {
height: 820px;
width: 800px;
-->
</style>
<script src="/Scripts/swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
//-->
</script>
</head>
<body class="oneColFixCtr" onload="MM_preloadImages('file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/Home_DOWN.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/home_OVER.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/aboutus_DOWN.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/aboutus_OVER.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/departments_DOWN.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/departments_OVER.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/sports_DOWN.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/sports_OVER.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/guidance_DOWN.png','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage- Bing and Ryan/images/guidance_OVER.png')">
<div id="container">
<div class="header" id="header">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="148" id="bhs_header" title="Belmont High School Slideshow">
<param name="movie" value="movie/header_slideshow.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="/Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="movie/header_slideshow.swf" width="800" height="148">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="/Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<!--endheadercontainer-->
<div id="navigation">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="index.html" target="_top" onclick="MM_nbGroup('down','group1','home','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/Home_DOWN.png',1)" onmouseover="MM_nbGroup('over','home','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/home_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/home_UP.png" alt="Home" name="home" width="80" height="30" border="0" id="home" onload="" /></a></td>
<td><a href="index_aboutus.html" target="_top" onclick="MM_nbGroup('down','group1','aboutus','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/aboutus_UP.png',1)" onmouseover="MM_nbGroup('over','aboutus','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/aboutus_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/aboutus_DOWN.png" alt="About Us" name="aboutus" width="80" height="30" border="0" id="aboutus" onload="" /></a></td>
<td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','depts','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/departments_DOWN.png',1)" onmouseover="MM_nbGroup('over','depts','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/departments_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/departments_UP.png" alt="Departments" name="depts" width="80" height="30" border="0" id="depts" onload="" /></a></td>
<td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','sports','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/sports_DOWN.png',1)" onmouseover="MM_nbGroup('over','sports','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/sports_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/sports_UP.png" alt="Sports" name="sports" width="80" height="30" border="0" id="sports" onload="" /></a></td>
<td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','resources','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/resources_DOWN.png',1)" onmouseover="MM_nbGroup('over','resources','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/resources_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/resources_UP.png" alt="Resources" name="resources" width="80" height="30" border="0" id="resources" onload="" /></a></td>
<td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','guidance','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/guidance_DOWN.png',1)" onmouseover="MM_nbGroup('over','guidance','file:///U|/Fall-Spring2010_11/Web Design/BHS website 2011-2012/Homepage/images/guidance_OVER.png','',1)" onmouseout="MM_nbGroup('out')"><img src="images/guidance_UP.png" alt="Guidance" name="guidance" width="80" height="30" border="0" id="guidance" onload="" /></a></td>
</tr>
</table>
</div>
<!--end#navigationcontainer-->
<div class="bubble" id="bubble">
<p>Mission Statement</p>
<i><p><font size="3">The mission of Belmont High School is to develop contributing
<br>members of society who are communicators and life long learners.</br></font></p></i>
<p>Statement Of Purpose</p>
<i>
<p><font size="3">Belmont High School establishes a learning environment which promotes intellectual and creative growth and social, emotional and physical development. The professional staff, with the support of the residents of the Shaker Regional School District, recognizes and accepts the responsibility to foster academic excellence in all areas of curriculum and to develop young adults who possess skills, knowledge, and social responsibility. Belmont High School realizes that learning is lifelong and that our goals include present day and lifelong learning opportunities.</font></p>
<p><a href="http://www.maps.google.com" target="_blank">Directions</a>
</p>
</i></div>
<!-- end #bubble-->
<div class="content" id="content">
<div class="left">
<table width="200" height="421" border="0">
<tr>
<td width="65" height="21" align="right" scope="col">Quick</td>
<td width="125" scope="col">Links</td>
</tr>
<tr>
<td height="42"> </td>
<td>Teacher Pages</td>
</tr>
<tr>
<td height="42"> </td>
<td>Student Handbook</td>
</tr>
<tr>
<td height="42"> </td>
<td><p>Plato (Summer Recovery Program)</td>
</tr>
<tr>
<td height="42"> </td>
<td> </td>
</tr>
<tr>
<td height="42"> </td>
<td> </td>
</tr>
<tr>
<td height="42"> </td>
<td> </td>
</tr>
<tr>
<td height="42"> </td>
<td> </td>
</tr>
<tr>
<td height="42"> </td>
<td> </td>
</tr>
<tr>
<td height="42"> </td>
<td> </td>
</tr>
</table>
</div>
<div class="center" id="center">
Welcome to Belmont High School!
<p>We take pride in our school and our community. This site is your online resource for information about us as well as recent news and upcoming events. </p>
<p>Located in Belmont, New Hampshire, Belmont High School was built in 1998 and services approximately 467 students.<br />
</p>
<p>The student body is made up of students from the towns of Belmont and Canterbury.
The high school is part of the Shaker Regional School District.</p>
<font color="#999999"><p>THE CAKE IS A LIE!!!</p></font><img src="images/serving-the-communities.png" width="350" height="30" alt="Serving The Communities Of Belmont And Canterbury" /><br> </br>
<br> </br>
This site was created by the students in Mr. Fricks Website Development Course
</div>
<!-- end #center -->
<div class="right" id="right">
<table width="201" border="0">
<tr>
<th width="10" scope="col"> </th>
<td width="181" scope="col">Announcements:</td>
</tr>
</table>
<ul>
On Saturday, May 14th from 9am-12:30pm at Bedford High School auditorium there will be a NH MILITARY SERVICE ACADEMY DAY.</ul>
<ul>Year books are now on sale for $35.00 reserve your copy today.</ul>
<ul>Senior Breakfast 6/3</ul>
<ul>Congratulations to Mr. Hill for receiving the 2010 NH JumpStart Teaching Award</ul>
<ul>The BHS Robotics team qualified for the 2011 VEX Robotics World Championship</ul>
<ul>Congratulations to Mr. Acquilano " Class M Athletic Director of the Year".</ul>
<ul>Congratulations to Mr. Wormald on being selected as one of the five finalist for the 2010 Great American Teacher of the Year</ul>
</div>
<!-- end #right -->
</div>
<!--end #content -->
</div>
<!-- end #container -->
<script type="text/javascript">
<!--
swfobject.registerObject("bhs_header");
//-->
</script>
</body>
</html>Browsers add their own default margins and padding to markup elements. You may want to use a Reset CSS. Or add a universal selector rule to the top of your CSS code:
* {margin: 0; padding: 0}
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
CSS Background Image issue in IE(6)
Not sure what's causing this, but I basically have an image
to create faux columns across my page, but the background image
isn't extending to the bottom of the page in IE (6) as it is
correctly in safari and firefox.
The page is here :
link here
The relevant CSS is :
#contentWrapper {
background-image:url(vehiclecolumns.gif);
background-repeat:repeat-y;
#outerWrapper #contentWrapper #rightColumn1 {
float: right;
padding: 15px 10px 10px 10px; /* Sets the padding properties
for an element using shorthand notation (top, right, bottom, left)
width: 754px;
text-align:justify;
#outerWrapper #contentWrapper #content {
margin: 26px 775px 0 0; /* Sets the margin properties for an
element using shorthand notation (top, right, bottom, left) */
padding: 15px 10px 10px 10px; /* Sets the padding properties
for an element using shorthand notation (top, right, bottom, left)
text-align:justify;
#outerWrapper #contentWrapper .clearFloat {
clear: right;
display: block;
Any ideas?
Cheers.#contentWrapper {
background-image:url(vehiclecolumns.gif);
background-repeat:repeat-y;
overflow:hidden;
zoom:1;
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Iain71" <[email protected]> wrote in
message
news:gaq8f2$pod$[email protected]..
> Not sure what's causing this, but I basically have an
image to create faux
> columns across my page, but the background image isn't
extending to the
> bottom
> of the page in IE (6) as it is correctly in safari and
firefox.
>
> The page is here :
>
>
http://www.mph.uk.com/vehicles701.php
>
> The relevant CSS is :
>
> #contentWrapper {
> background-image:url(vehiclecolumns.gif);
> background-repeat:repeat-y;
> }
> #outerWrapper #contentWrapper #rightColumn1 {
> float: right;
> padding: 15px 10px 10px 10px; /* Sets the padding
properties for an
> element
> using shorthand notation (top, right, bottom, left) */
> width: 754px;
> text-align:justify;
> }
> #outerWrapper #contentWrapper #content {
> margin: 26px 775px 0 0; /* Sets the margin properties
for an element
> using
> shorthand notation (top, right, bottom, left) */
> padding: 15px 10px 10px 10px; /* Sets the padding
properties for an
> element
> using shorthand notation (top, right, bottom, left) */
> text-align:justify;
> }
> #outerWrapper #contentWrapper .clearFloat {
> clear: right;
> display: block;
> }
>
> Any ideas?
>
> Cheers.
>
Maybe you are looking for
-
ITunes 7 hangs while trying to update Library
I installed 1Tunes 7 onto my Jukebox Mac - contains 16,450+ tracks, 90Gb. iiTunes hangs when trying to update the library. I keep all my actual music files on an external LaCie D2 160Gb drive. Even if I move the drive to a different Mac, and attempt
-
Installing Oracle BAM on Windows XP
I just wanted to know whether Oracle BAM can work on Windows XP. In the install guide they have mentioned XP can be used for demo purposes but their minimum requirements state they need Windows Server 2003 or 2000 as the platform. Can you please conf
-
Whenever i go to turn my ipod on all i get is the black screen with the apple logo and after a minute or two it just turns off. i have tried resetting it and everything. nothing works
-
N97 Proximity Sensor doesn't work quite as well?
I just recently updated my phone and it seems like the switch from portrait and landscape doesn't work quite as well. The angle at which I have to put it on landscape is steeper and it's really annoying. Anyone else have this problem? edit: I know th
-
How do you remove white box around a logo?
I own the Adobe CS5 suite, but I'm still new to these programs and don't know a lot about image editing and website creation. I'm making a website for my boss, and because I don't know how to use Dreamweaver yet, I've been using an awful software pro