helen stunell
-
Posts
9 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by helen stunell
-
-
I've defined the width of the elements to 100% but when I open the page on a screen bigger than the screen I have it doesn't stretch to fit the screen. Is there anything else I can do?you define the widths of the page elements in percentages rather than pixelsexample <div style="width:100%;"></div> -
does anyone know how I can make a webpage autostretch to fit any screen size?
-
yeah tried that its still not working! My css file is in the same folder as my html file so thats not the problem. I really don't understand why the only part of the code that doesn't work is the background color. The code for the header etc works fine.Strange as it may sound, if i open my html file in open office word it work perfectly, background colour and everything so it obviously works just not in a browser!
-
http://www.w3schools.com/media/media_browservideos.asptry looking at this page it might help!
-
This is as far as i have got. If I'm doing something wrong please tell me. I'm pretty sure its how it should be.thanx <html><head><link rel="stylesheet" style type="text/css" href="style.css" /></head><body><h1> </h1></body></html>
-
I've tried it & it still won't work, my code looks exactly the same. ggggrrrrr!!!!It works fine, it should look like this<head><style type="text/css">body{background-color:yellow}h1 {background-color: transparent}h2 {background-color: transparent}p {background-color: rgb(250,0,255)}</style></head> http://www.w3schools.com/css/tryit.asp?fil...ackground-color -
Hmm try placing your closing head tag after your closing style tag.[/quoteI've tried that & it still won't work
-
I am creating a CSS for a website and I have used the following code:<head><style type="text/css"></head>body{background-color:yellow}h1 {background-color: transparent}h2 {background-color: transparent}p {background-color: rgb(250,0,255)}</style>all the code works apart from body{background-color: yellow} i can't understand why it won't work - its the same as the code W3c tells you to use. can anyone help?
stretching a page on html
in HTML/XHTML
Posted