navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

question

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> question
Page: [1]
 
reformed hater

 

Posts: 167
Joined: 2/1/2006
From: The land of sun and hurricanes; US
Status: offline

 
question - 3/16/2006 12:13:38   
Another dumb question from a newbie learning CSS...
ok i'm using

div.box
{
color:orange;
width:400;
height:300px;
overflow: scroll;
background-image:url('x.JPG');
background-position: center;
background-attachment:fixed;
background-repeat:no-repeat
}
to scroll a box.... I don't need the horzontal scroll how do i get rid of it?

_____________________________

When asked what the White House was like by a British student George W. Bush responded “It is White"
caz

 

Posts: 3582
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: question - 3/16/2006 12:41:38   
In the absence of the Doc Type Diva try giving measurement units to this

quote:

width:400;


400 what? ems, px or ...

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to reformed hater)
reformed hater

 

Posts: 167
Joined: 2/1/2006
From: The land of sun and hurricanes; US
Status: offline

 
RE: question - 3/16/2006 13:45:33   
oops it's px

_____________________________

When asked what the White House was like by a British student George W. Bush responded “It is White"

(in reply to caz)
caz

 

Posts: 3582
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: question - 3/16/2006 14:36:16   
Did that solve your problem?

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to reformed hater)
reformed hater

 

Posts: 167
Joined: 2/1/2006
From: The land of sun and hurricanes; US
Status: offline

 
RE: question - 3/16/2006 14:43:47   
nope, but I figure I'll just hide the bar within the bg colors.... :)unless there's a better way

_____________________________

When asked what the White House was like by a British student George W. Bush responded “It is White"

(in reply to caz)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: question - 3/16/2006 15:02:46   
quote:

overflow: scroll;


Did you try:

overflow: hidden;

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to reformed hater)
caz

 

Posts: 3582
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: question - 3/16/2006 15:05:33   
It would help if you had a url, or show us the html

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to rdouglass)
Tailslide

 

Posts: 6272
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: online

 
RE: question - 3/16/2006 15:34:33   
quote:

ORIGINAL: caz

In the absence of the Doc Type Diva try giving measurement units to this

quote:

width:400;


400 what? ems, px or ...


Sorry, been busy rebuilding my site (half-way through).

Caz is right about adding the px but also try overflow:auto and remove the width if you want to get rid of the Horizontal scrollbar too then sit the div inside another div with a width assigned to that otherwise when your content goes over the 400px you'll get the horizontal scroll.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to caz)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> question
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts