Background image causes horizontal browser scrollbar
We have a large background image on a website so that people can change the size of their browser window amd still see the background image. The image is also part of the page design so we can't use any of the scale options. All page content is centred and there are no objects other than the background image anywhere outside the 940 pixel wide centre column.
The problem is that the background image is causing the horizontal scroll bar to appear at the bottom of the browser, which is undesirable. Worse is that the scroll bar is not centred, it is instead all the way to the left. Can this behaviour be fixed in the next update please?
Figured out what was causing it (the footer, d'uh!). Any ideas on how to fix the footer up so it doesn't do that? The footer has an image the same width as the page background.
Similar Messages
-
How do they get background image to span browser width?
At http://www.archerschoicemedia.com, they have a background image at the top that spans the entire browser width. How is that achieved? What if image isn't as wide as screen resolution, won't it just repeat?
All help with adding a background image that does this - spans the entire browser width - is what I'm after.
Thanks!What if image isn't as wide as screen resolution, won't it just repeat?
No.
The CSS reads
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background:url(../i/backgroundvid.jpg);
background-position:center top;
background-repeat:no-repeat;
background-color:#000000;
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 */
overflow-x: hidden;
overflow-y: auto;
So, the CSS is set to horizontally center the background image and not repeat it.
Plus, on screens wider than 1689px wide, the background color of black (#000000) shows through at the edges creating the impression that the background is endless. -
Background Image Cuts Off - Browser Scroll Isn't Long Enough
Okay, fairly new to Dreamweaver, long-time graphic designer. That said, the answer will probably be easier than trying to explain the problem!
Using the Page Properties, I set the following in the Appearance (CSS) tab:
Background color to #000
Appearance HTML Background image (contains the image in question, created in Photoshop)
No-repeat
This Photoshop image is kind of long (960 x 2232) because there is a bunch of text that needs to flow on top. I thought that I reached some sort of maximum in height and so I reduced the height of the image a little and the same problem--cut off at the bottom of the browser. Note that this cut off issue was not a problem until I extended the graphic to this long length. On other pages, it is much shorter and all is well.
I've pasted a snapshot of the bottom of the web browser preview below. You can see that the scroll bar is at the bottom and there is just a small bit of the paper that is not showing. I would like the bottom of the paper to be seen with a little bit of the black background beneath that.
My first instinct is that I'm missing a bottom padding effect, but can't find where to adjust that type of setting.
Another Thought--I would much rather this graphic auto expand as the text flows over it, but did not know how to accomplish that, so I extended the graphic in the Photoshop file. Its not a tile type of image that can be repeated. It is an ancient looking paper, therefore, the top and bottom need to look a certain way, but the mid section could be tiled and repeated. So if this is a better route, please direct me on where to learn how to implement.
Thanks a bunch!extra carriage returns were needed in the text frame to extend below the background image.
Rule #1 in web design:
Do not use non-breaking spaces, line breaks or empty <p> tags as a layout device. It doesn't work in all devices or by all users.
Rule #2 in web design: Use CSS to style your layout with margins, padding and min-height properties.
HTML & CSS Tutorials - http://w3schools.com/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Hide horizontal browser scrollbar
Hi, hope you could help me solving my problem...
I 'm a beginner with muse and have a problem with the 100% width...
wanna built a Menue with the add on "mighty menu" and a slide show below there with the composition widget of muse in 100% width, but couldn't set the rectangles I placed in the target fields to 100%.
I've read here that its not possible to set rectangles to 100% when they are grouped. ok, all items of triggers and targets are automatically grouped and I think there is no other possible way !?
My solution had been, stretching all rectangles of the menue and the slideshow far over my adjusted site width and testet it in my browser Looks good even if I set the browser window to the fullest possible width at my 27" display.
But know I saw that I could scroll with the horizontal scrollbar rightwards beyond the frames of menue and slideshow. How can I hide the horizontal scrollbar, so that this is not longer possible?
Found that html command and applied it to my site properties
<style>
html{
overflow:hidden;
</style>
but it hides both scrollbars...is there one only for the horizontal?
Or is there any other solution?
Thanks for helping
nadineHi Loufine,
You can use this command to hide only the horizontal scrollbar and not the vertical one :
<style>
html
overflow-y: scroll;
overflow-x: hidden;
</style>
Cheers,
Rohit Nair -
Outwit images caused the browser windowto black in how can I disable outwit?
I am running Mac 10.4.11 Firefox and outwit images went crazy?It blacked out the browser window and flashed it was like a meltdown.
Go to Tools | Add-ons | Extensions and remove it from there.
-
Moving background images horizontally as a loop?
I was wondering, if anybody knew a way to get a Background-image moving horizontally and without interruption as a steady loop.
I tried using animated Gifs, but that takes too much ressources, as the file size grows too large.
I was wondering whether or not I should have the Background Image replaced by a div with a flash in it, that is being looped. This alternative looks kinda dodgy to me, though and I don't want this to be integrated.
I saw some sites using Javascript for almost similar effects vertically, but these effects didn't really work on various browsers (Seamonkey/Firefox), although they worked fine on IE and Opera.
This issue is really driving me nuts right now. thanksDo the end users really want this would be the first question I'd be asking! Just because one can put a plastic pink flamingo lawn ornament in their yard doesn't mean one should.
1) The simplest, most sure-fire way is with an animated GIF. I'm not sure I understand your filesize concern - how many frames of animation are you using?
2) Javascript - take a look at jQuery and it's associated plugins for ways to create sliding effects. This approach will not use css background images but rather fake it using different divs carefully positioned via Javascript DOM manipulation. Animation would also be provided by Javascript.
3) Flash. Again not really using background images because Flash doesn't work that way. The downsides are 1) it's Flash, 2) Will need to use wmodewith all the issues that entails 3) will likely require absolutely positioning elements to create a background effect with all the issues that *that* entails.
I'd suggest rethinking whether you really need animates background images and then taking a look at jQuery though and some of the jQuery "animation" plugins that are available.
Oh and one final approach would be to do this all in Flash.
Hope this helps. -
CSS Background Image - Newbie needs help
Good Afternoon,
I'm trying to place a background image in the body of my
page. Pasted below is the code:
Questions:
1. When viewed in the browser, only part of the image can be
viewed, and no vertical scroll bar is available to view the bottom
portion of it. Is there a setting to toggle such that the entire
image can be viewed?
2. As part of the background image, I have text that I want
to use as hotspots for links to other pages in the site. Do I need
to place a table or use some other technique to enable use of
hotspots?
Thanks from a very Green Newbie.
Sid> 1. When viewed in the browser, only part of the image
can be viewed, and
> no
> vertical scroll bar is available to view the bottom
portion of it. Is
> there a
> setting to toggle such that the entire image can be
viewed?
Background images will never force scrollbars.
> 2. As part of the background image, I have text that I
want to use as
> hotspots for links to other pages in the site. Do I need
to place a table
> or
> use some other technique to enable use of hotspots?
Yes. You cannot put hotspots on background images. Be aware
that this is
the worst (well, publishing a page made in Microsoft
Word/Publisher is the
worst) way to make a web page.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Sid Childers" <[email protected]> wrote in
message
news:eksuka$56i$[email protected]..
> Good Afternoon,
>
> I'm trying to place a background image in the body of my
page. Pasted
> below
> is the code:
>
> Questions:
> 1. When viewed in the browser, only part of the image
can be viewed, and
> no
> vertical scroll bar is available to view the bottom
portion of it. Is
> there a
> setting to toggle such that the entire image can be
viewed?
> 2. As part of the background image, I have text that I
want to use as
> hotspots for links to other pages in the site. Do I need
to place a table
> or
> use some other technique to enable use of hotspots?
>
> Thanks from a very Green Newbie.
> Sid
>
> <style type="text/css">
> <!--
> body {
> background: url(Homepage.jpg) no-repeat;
> }
> -->
> </style>
> -
Repeating Background Image Download Question
When you use a repeating background image does the browser
only download it once and then repeat it on their computer?
I wanted to use a gradient background image so I figure to
cut down the dowload size I'd just take a 1 pixel wide slice and
repeat it, does that work?It works perfectly, I use Photoshop to make gradients and
then insert the psd onto a page, where you get a conversion dialog,
i select 100 for the jpeg quality and uncheck the sharpen color
edges checkbox, you can use gifs if you want, then in your
stylesheet use background-repeat: repeat:x;
or y if you want to have a right to left gradient.
Look at this site i am working on, it uses alot of PS
gradients, all with repeat-x
http://plcstrings.com/ -
Sliding background image to navbar
I've seen a few sites that implement a sliding background
image in horizontal menus, that "catches" up to the cursor as you
move left or right across the menu, then hovers behind the cursor
when it's static.
Anyone give me a clue as to how this is implemented or point
me at a tutorial ?
cheersTry these tutorials:
http://www.flash-creations.com/notes/dynamic_slidingviewer.php
http://www.kirupa.com/developer/mx/infinite.htm -
Css: background image that doesn't force a horizontal scrollbar
I am looking to create a small pattern (an image) that will
always align to the left and right of my content. All of my content
is situated in a 760px wide div that is centered with margin:0px
auto. My problem is that if I create another div to hold the
additional image, that any browser would probably display a
horizontal scrollbar if the image and the content together exceed
the width of the users viewport.
I thought about doing it this way, but I am not sure if this
will work... My content div is wrapped inside another div called
with class whitediv. This whitediv is 100% of the users viewport
wide. Could I assign a background image to this div, which will
center, and therefore lurk behind my content div?
Any suggestions?
Thanks, dl33Bernd,
It worked perfectly--thank you VERY much for your help! -
Background image not cached in browser
Hi,
Using JDeveloper 11g R1.
We have a template, with a PanelGroupLayout component with a background image, like follows:
<af:panelGroupLayout layout="horizontal"
inlineStyle="width:100%; height:2px; background-image:url("images/separacioRalles.jpg"); background-repeat:repeat-x;"
id="pt_pgl5">
In runtime, the request made by the browser includes and _adf.ctrl-state=xxxxxx parameter, which I supose causes the browser not checking the cache.
image/jpeg http://127.0.0.1:7101/ViewController-context-root/faces/images/separacioRalles.jpg?_adf.ctrl-state=1bn1yq032y_79
Is there any way to avoid this _adf.ctrl-state? or another way to set the desired background?
Thanks,
RogerHi Frank,
Not working fine at all.
I tried as you said:
<af:panelGroupLayout layout="horizontal"
inlineStyle="width:100%; height:2px; background-repeat:repeat-x; background-image:url("/images/separacioRalles.jpg");"
id="pt_pgl5">
and this is the request received on the server:
127.0.0.1 - weblogic [28/ago/2009:10:39:58 +0200] "GET /images/separacioRalles.jpg HTTP/1.1" 404 1214
Comparing with an af:image component:
<af:image shortDesc="asdf"
source="/images/help.gif" id="pt_i1"/>
the request received on the server:
127.0.0.1 - weblogic [28/ago/2009:10:39:58 +0200] "GET /ViewController-context-root/images/help.gif HTTP/1.1" 304 0
If I put the contextroot in the background-image:url (background-image:url("/ViewController-context-root/images/separacioRalles.jpg"), it works fine.
127.0.0.1 - weblogic [28/ago/2009:10:44:28 +0200] "GET /ViewController-context-root/images/separacioRalles.jpg HTTP/1.1" 304 0
So seems that the background image url is not built in the same way as using af:image component.
Roger B -
Won't display background image in browser.
My background image displays in dreamweaver and in the live view but it doesn't display in the browser when I try to view in a browser or when I publish the website. I have spend hours looking for a solution and I am not sure what the problem is. I have checked the code on the following websites and it comes out ok:
http://jigsaw.w3.org/css-validator/validator
http://validator.w3.org/check
I have also tried my code with and without the overflow: hidden; under #container where the image should be displayed. (i was trying a new way to design -ie without basic grid and floating everything so the container can be removed if needed)
here is my code. Please help!!! thank you in advance!!!
<!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>Jan Kardys' Literary Agency</title>
<style type="text/css">
#header {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
float: left;
width: 930px;
color: #3F9;
#Menu_bar {
float: left;
width: 190px;
#Page_Content {
float: right;
width: 725px;
height: 500px;
#footer {
float: left;
width: 930px;
#Main_content {
float: left;
width: 510px;
#xtra_content {
float: right;
width: 190px;
#container {
width: 930px;
margin: 0 auto;
background-image: url(/Images/Parchment.gif);
overflow: hidden;
</style>
<script src="file:///C|/Users/james/Documents/DREAMWEAVER SITES/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="file:///C|/Users/james/Documents/DREAMWEAVER SITES/SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
</style>
</head>
<body>
<div id= "container">
<div id="header"><h1>Jan kardy's Literary Agency</h1></div>
<div id="Menu_bar">
<ul id="Vertical_menubar" class="MenuBarVertical">
<li><a href="#">Home</a></li>
<li><a href="#">About Jan Kardys</a></li>
<li><a class="MenuBarItemSubmenu" href="#">Rescources</a>
<ul>
<li><a class="MenuBarItemSubmenu" href="#">Education Connection</a>
</li>
<li><a href="#">Submission Guidelines</a></li>
<li><a href="#">First Steps to Publishing</a></li>
<li><a href="http://advancenetworkingunicorn.blogspot.com/">Advanceced Networkinig Blog</a></li>
<li><a href="#">Library & Publishing Events</a></li>
</ul>
</li>
<li><a href="#">Client Links</a></li>
<li><a href="#">Art Gallery</a></li>
<li><a href="#">Contact Jan Kardys</a></li>
</ul>
</div>
<div id="Page_Content">
<div id="Main_content">Content for id "Main_content" Goes Here</div>
<div id="xtra_content"><h3>News & Events
</h3>
<p><a title="http://scotlandpubliclibrary.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://scotlandpubliclibrary.org/">Scotland Public Library</a>, Scotland, CT April 21, 2011 6-8pm<br />
</p>
<p><a title="http://www.plymouthct.us/library.htm" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.plymouthct.us/library.htm">Plymouth CT Library</a>, Plymouth, CT April 30, 2011 10am<br />
</p>
<p><a title="http://www.hplct.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.hplct.org/">Hartford Public Library</a>, Hartford, CT May 7, 2011 10am<br />
</p>
<p><a title="http://www.middleburghlibrary.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.middleburghlibrary.org/">Middleburgh Library</a>, Middleburgh, NY May 14, 2011 1pm<br />
</p>
<p><a title="http://dewlib.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://dewlib.org/">Dewitt Community Library</a>, Dewitt, NY June 21, 2011 7pm<br />
</p>
<p><a title="http://gilfordlibrary.org/gpl/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://gilfordlibrary.org/gpl/">Gilford Public Library</a>, Gilford, NH July 7, 2011 6:30-7:30pm<br />
</p>
<p><a title="http://www.athollibrary.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.athollibrary.org/">Athol Public Library</a> Athol, MA July 14, 2011 5:30pm<br />
</p>
<p><a title="http://www.goshenpublib.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.goshenpublib.org/">Goshen Public Library</a> Goshen, CT July 23, 2011 11am<br />
</p>
<p><a title="http://columbiactlibrary.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://columbiactlibrary.org/">Saxton B. Little Free Library</a>, Columbia, CT July 26, 2011 6:45pm<br />
</p>
<p><a title="http://hampden-library.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://hampden-library.org/">Hampden Public Library</a>, Hampden, MA Sept. 10, 2011 10:30am<br />
</p>
<p><a title="http://fortlee.bccls.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://fortlee.bccls.org/">Fort Lee Public Library</a>, Fort Lee, NJ Sept. 14, 2011 7:00pm<br />
</p>
<p><a title="http://prosserlibrary.info/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://prosserlibrary.info/">Prosser Public Library</a>, Bloomfield, CT October 3, 2011 6:00-8:00pm<br />
</p>
<p><a title="http://iwwg.org" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://iwwg.org">IWWG. org</a>, New York City, October 16, 2011 2:30-6pm<br />
</p>
<p><a title="http://www.hchlibrary.org/" onkeypress="window.open(this.href); return false;" onclick="window.open(this.href); return false;" href="http://www.hchlibrary.org/">Henry Carter Hull Library</a>, Clinton, CT October 24, 2011 6:30pm<br />
</p>
<p><a href="http://town.canton.ma.us/library" title="http://town.canton.ma.us/library">Canton Public Library</a>, Canton MA Janurary 7, 2012 2:00pm<br />
</p>
<p><a href="http://www.town.sturbridge.ma.us/Public_Documents/F0000F86A/library" title="http://www.town.sturbridge.ma.us/Public_Documents/F0000F86A/library">Joshua Hyde Library</a>, Sturbridge, MA March 24, 2012 10:30am<br />
</p>
<p>Otis Library Norwich, CT April 14, 2012 12:00am-2:00pm<br />
</p>
</div>
</div>
<div id="footer"> <h6>Webpage designed by James S. Molina</h6></div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("Vertical_menubar", {imgRight:"/SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</div></body>
</html>In regard to the files you currently have on your server, the links to your Spry menu files are still pointing to your local computer. This is caused when a site has not yet been defined in Site Manager, so DW is forced to link them locally.
To fix your page, just go into code view and remove the part of the link path that I have underlined and made BOLD.
<script src="file:///C|/Users/james/Documents/DREAMWEAVER SITES/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="file:///C|/Users/james/Documents/DREAMWEAVER SITES/SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" /> -
How can I make an image tile length of browser without using it as background image?
I understand that if you use the rectangle tool and stretch it to the edge of the page, triggerring the red margin, the tiled image is supposed to stretch the length of the browser. Although this works for width, tiling horizontally, for some reason, it doesn't work for length, tiling vertically. When I preview my work in browser, the tiled image doesn't extend along with the footer as I scroll down the page.
When I use the image as background fill and tile it, then it works, but I need to use a different image for the background.Hi
As you have mentioned you can either use browser fill with tile fitting or design the browser background image outside of Muse using any image editor like Photoshop and then use as browser fill which would include both images the one you want to use as background image and the one that you want to use as Tile on page section.
Thanks,
Sanjit -
Background images with spry "horizontal menu"
hi again
I am trying to work with the spry: "horizontal menu"
I want to put some background images into the menu bar not into the submenu
and that is the problem: the background images appears overall
what can I do ?
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Unbenanntes Dokument</title>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#container {
margin-right: auto;
margin-left: auto;
width: 400px;
-->
</style>
</head>
<body>
<div id="container">Raum für den Inhalt von id "container"
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="#">Element 1</a> </li>
<li><a class="MenuBarItemSubmenu" href="#">Element 3</a>
<ul>
<li><a href="#" class="MenuBarHorizontal">heija</a> </li>
<li><a href="#">soso</a></li>
</ul>
</li>
<li><a href="#">Element 4</a></li>
</ul>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
and css
ul.MenuBarHorizontal
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
width: auto;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: center;
cursor: pointer;
width: 100px;
float: left;
height: 10px;
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 100px;
position: absolute;
left: -1000em;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
left: auto;
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
width: 100px;
height: 30px;
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
position: absolute;
margin: -5% 0 0 95%;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
left: auto;
top: 0;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
border: 1px solid #CCC;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
display: block;
cursor: pointer;
background-color: #FEF3E4;
padding: 0.5em 0.75em;
color: #FFF;
text-decoration: none;
background-repeat: no-repeat;
background-image: url(../rot.jpg);
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
color: #FF0;
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
background-color: #FEF3E4;
color: #FF0;
background-image: url(../rot.jpg);
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
background-color: #FEF3E4;
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
background-color: #0F9;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
background-color: #FEF3E4;
color: #FF0;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
background-color: #F99;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarHorizontal li.MenuBarItemIE
display: inline;
f\loat: left;
background: #FFF;Complete page and css code below (scroll down)
All you should be concerned with at this moment to get the background image to appear in the top level anchor is the css style below:
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
background-color: #000;
background-image: url(../rot.jpg);
background-repeat: no-repeat;
background-position: left top;
I've added the background-postion because presumably you want it to appear flush left. This overides the out-of-the-box setting which positions it 95% far left.
Here is the code and css:
<!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>Untitled Document</title>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Unbenanntes Dokument</title>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<head>
<style type="text/css">
<!--
#container {
margin-right: auto;
margin-left: auto;
width: 400px;
-->
</style>
<style>
ul.MenuBarHorizontal
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
width: auto;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: center;
cursor: pointer;
width: 100px;
float: left;
height: 10px;
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 100px;
position: absolute;
left: -1000em;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
left: auto;
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
width: 100px;
height: 30px;
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
position: absolute;
margin: -5% 0 0 95%;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
left: auto;
top: 0;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
border: 1px solid #CCC;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
display: block;
cursor: pointer;
background-color: #FEF3E4;
padding: 0.5em 0.75em;
color: #FFF;
text-decoration: none;
background-repeat: no-repeat;
background-image: url(../rot.jpg);
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
color: #FF0;
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
background-color: #FEF3E4;
color: #FF0;
background-image: url(../rot.jpg);
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
background-color: #000;
background-image: url(../rot.jpg);
background-repeat: no-repeat;
background-position: left top;
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
background-color: #0F9;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
background-color: #FEF3E4;
color: #FF0;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
background-color: #F99;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
</style>
</head>
<body>
<div id="container">Raum für den Inhalt von id "container"
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a class="MenuBarItemSubmenu" href="#">Element 1</a> </li>
<li><a class="MenuBarItemSubmenu" href="#">Element 3</a>
<ul>
<li><a href="#" class="MenuBarHorizontal">heija</a> </li>
<li><a href="#">soso</a></li>
</ul>
</li>
<li><a href="#">Element 4</a></li>
</ul>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html> -
Full browser window placeholder that acts like background image fill?
I want to be able to set full browser window placeholder that acts like the background image fill function, but be able to then build in a multi-anchored horizontal parallax. The effect is like we have a background image fill, but can slide horizontally between pages as if they are in a slide show. Simultaneously, content inside the placeholder such as longer paragraphs of text can scroll down - on top of the image layer, but inside the borders of the image placeholder. For a clear example of this, see this website: http://argonautinc.com/
I've read and searched but to no avail. I'm only about one week into Muse, so please forgive me if this is super simple! Thanks, NicoHi Nico_Cineaste,
You can achieve the design by using Fullscreen Slideshow in MUSE as object.
Open any page in MUSE , click on the "Object" >> Slideshow >> Fullscreen.
Click on your blank web page.
This will give you a full screen slideshow.
You can now design as per your requirement.
Thanks
Prabhakar Kumar
Maybe you are looking for
-
Drive crashed-have new hard drive, how to load music so Itunes can find it?
My system crashed, had everything backed up on an external. I am using an I: drive (it is a different and larger hard drive), vs. the original C: drive that crashed. What is the best way to load back my music so Itunes can recognize the songs and pla
-
In which tables are CIC0 billing data stored?
Dear Gurus, Quick question.. may I know in which tables are the billing transaction data stored? Thanks in advanced. BR, Jayne.
-
ColdFusion plug ins for Dreamweaver CS5
Does anyone know where I can download these from? I'm having a hard time finding them.
-
Hi, i'm trying to play a flv file in the jmstudio player. I've added the jffmpeg, and followed the instructions, but i just keep getting these error messages saying that it can't create a player. Anyone done this before? Andreas
-
My iPhone 4s socket for the headphones does not connect with the headphones' plug unless I push it in hard and hold it there. If I take my finger away, the outside world hears my music, but I can't hear it through the headphones. Is this a defect in