Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2008, 02:13 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default testing div positioning in different screen sizes

I am currently looking to update the design and look-and-feel of my website, so I have made some recent changes to the site. The problem is I am using <div>s now and setting the position of the divs in my stylesheet, but......I am developing the site and looking at it on a 15" laptop monitor. So it's hard to tell if it looks the same on a 21" monitor :confused:

Would someone be able to tell me if this looks correct on their monitor:

http://www.ayrshireminis.com/index2.php

The German and British flags div is set with the code:
Code:
<div style="position: absolute; left: 80%; top: 7%">
....<table>.....
</div>
Cheers,
Picco
;)

_______________________
Ayrshire Minis - a Mini E-Community
www.ayrshireminis.com
www.crmpicco.co.uk
www.scottishminis.com
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old February 11th, 2008, 05:02 AM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

I'm using a 19" screen and the flags are positioned with a small but clean looking space left of the language drop down. Looks OK on my box.

I would also recommend taking the next logical step with your CSS. It looks like you're doing a great job, now move it from the inline style attribute and collect everything in a separate CSS file! Swap your style attribute for an ID <div id="flags"> and insert the text from the style attribute into a separate text file like so...

#flags {
position: absolute;
left: 80%;
top: 7%;
}

The # indicates that this is an id. Repeat this until all your styles are in the style sheet and save it with a .css extension. Then include a link tag between your <head></head> tags...

<link rel="stylesheet" type="text/css" media="all" title="ayrshirestyles" href="mystyles.css" />

The link tag in your webpage tells the HTML where to find the stylesheet. The ids in the html tell the stylesheet what their names are and the #idname identifies each ID and then indicates what styles you want to apply to that element.

Good luck with your project!

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Positioning Div over specific table cell pjmair HTML Code Clinic 4 May 8th, 2009 02:19 PM
Help with positioning a DIV using XSLT and XML skidmerc XSLT 3 May 2nd, 2008 06:45 AM
DIV - Centre Positioning Prob socoolbrewster CSS Cascading Style Sheets 3 June 5th, 2005 09:23 AM
Dreamweaver Screen Sizes Cptnspeed Dreamweaver (all versions) 9 February 27th, 2005 08:29 AM
Positioning pages to fit all screen resolutions? larry HTML Code Clinic 2 January 19th, 2004 05:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.