COURSES
SERVICES
ABOUT US
Home > Info Point > All About Div Tags

Dealing With Problematic Div Tags



When your page has suddenly decided to suddenly look a complete mess, we can quite often be left wondering if computers really do have a personality which sometimes decides to stop working for no reason other than that they are in a bad mood. This thought however (despite the number of times we may talk to our computer as if it can hear us) is not true. I remember once when I was quite new to web design, my page suddenly decided to mess up and I could not figure out what had gone wrong. After much heartache and code searching, I found the problem – the div tag. To all you experienced and long-time web developers out there, this will not be news to you.

However, I would like to pass on this some hints and tips to all you newbies out there so that you (hopefully) can be more savvy than I was when I started out trying to fix an unhappy web page.

Just in case anyone doesn’t know, I will first explain what a div is. A div is like a container. If you imagine that you have a number of transparencies on your desk, with writing on each. You can draw on these transparencies and change the size of them, then lay them beside each other or on top of each other in order to build a picture or scene. This illustrates the div.

Divs are like transparencies that you can determine the size of and then layer over each other and besides each other in order to build a web page. Divs can hold pictures, text, other divs, forms, anything really – they are simply containers of content.

Assuming you understood all that or you are already clued up on divs, we can move on. The reason divs have such an effect on your page is because they are the foundation of your page.  A bit like taking the wrong block in Jenga , if you mess up a div the whole page can collapse.
Here are a few things that can go wrong and some solutions that I have found. I hope these are helpful! You will find these hints and tips most useful if you are using Adobe Dreamweaver.


Problem

Your div tags have suddenly jumped to different co-ordinates on your page, some of them seem to be aligned still but they have moved and you don’t know why.

Solution

This can often be because you have deleted a div closing tag </div> quite high up your page. Since the div is unclosed, it is assumed that all the other divs that come after this div in the code are supposed to be inside this div, meaning that the x and y  co-ordinates will be taken from the top and left of the unclosed div, instead of the page or the div they are supposed to be in. If you find the unclosed div tag and close it, the divs will go back to where they were supposed to be. Be aware that re-aligning the divs to where you want them to be when they have suddenly moved will only be a temporary solution because the you will encounter other faults later on due to the div tag there still being an unclosed div tag. If you are using Adobe Dreamweaver, you will be able to see a breadcrumb trail for the div tags along the bottom of the window, which will help you determine which div has the error.


Problem

Your div tags have a dotted line around them, they are not showing up in the correct place and you cannot click on the outline to adjust or move it.

Solution

This is often caused by an obstruction between the div and the css style associated with it. The obstruction can be caused by a misspelling in the div tag id ie. <div id=”divoen”>  instead of <div id=”divone”> This means that the div will not be able to find a css style associated with it, meaning that it will not be displaying correctly. In this case, you will need to change the name of the div attribute “id” in the to match the css style, or change the css style name to match the div attribute “id” – either way, they have to match.
This problem can also be caused by the css style sheet not being attached to the page. In this case, simply attach the style sheet to the page properly and the problem will be fixed.


Problem

The div tag is not displaying in the correct place, there is a solid line around the div, but the div cannot be clicked and moved around in Dreamweaver Design View.

Solution

This can be caused by the position attribute in the css style sheet. If the attribute is position:relative, you will be unable to move the div with the mouse. If you change the attribute to position:absolute then you will be able to click and drag the div into the desired place. However, position:relative has it’s own benefits so if you do not want the position to be absolute then you can change the x and y co-ordinates manually in the css style sheet or in the properties bar in Dreamweaver. But don’t worry! Being unable to click and drag a relative div is not a fault or problem with your code.


Problem

The div tags are all closed, the id attributes  are spelt correctly, the css style sheets are attached to the page properly, but changing the css code has no effect on the div whatsoever, the css code in the style sheet is correct, but  the div tag is not changing on the page.

Solution

This can be caused by duplicate css styles pointing to the same div by having the same name. Once I was trying to change the scrollbar properties of a particular div, and the css was just making no difference, which was rather frustrating. So I decided to do a simple Find and Replace in the css style sheet and I found that I had two occurrences of the div I was trying to change. Therefore, the div was ignoring the styles  I was changing as it was listening to the other set of attributes I had for the div. It seems like an obvious mistake but it is amazing how much bother it can cause! If you do not have duplicate versions of the div attribute set in your css style sheet, try looking in your actual page. If the div has a set of css attributes in the css style sheet and the page, the div will listen to the on-page attributes as they are closer to the div, and thus deemed more important.



If you have a question that is not answered here, feel free to send an email to: theweb""ittrainingsolutions""co""uk, I will be happy to add it to the list!


Accessibility Accessibility: Decrease Text Size Increase Text Size
Click here to enquire online  Enquire Online
Click here to view our special offers  Special Offers
"Trainer was excellent and very approachable"
L.C. CLRN - VBA Using Excel
"Excellent as always"
S.W. National Grid - PhotoShop Level 1
"The trainer was excellent, he listened to what we wanted to gain from the course and didn’t waste time trying to teach us things we would never use, he explained in simple terms..."
P.C. Northumbria Police - Excel Level 2
"Great, exactly what I wanted at a level I could understand"
P.A. Straughans - Access Level 1
"Having one-on-one training was unexpected but was a tremendous bonus. Could not fault the day"
D.R. UK Asset Resolution - PowerPoint Level 2
"This is my second course and I have enjoyed both and have another booked for February so I wouldn't change anything"
T.S. Bell Truck and Van - Excel 2007 / 2010 Level 2
"This is my third course and I have enjoyed them all"
T.S. Bell Truck and Van - PowerPoint Level 2
"Knowledge and professionalism of the trainer was excellent, questions encouraged and answered knowledgeably"
J.M. The Cyrenians - VBA using Excel
"I enjoyed the course and was pleased with the speed it progressed"
G.J. NCFE - HTML Level 1
"Very good way to teach. Nice mix of theory and practice"
K.F. Durham University - Access Level 2
View More | Hide
Share on Facebook | Join us on Facebook or 
Share on Twitter |  Follow us on Twitter or
 | 
 
Click here to read our FAQs  FAQs

Please wait a moment whilst we retrieve the course schedule for you.
Thank you.

Close this window

Site Map

Most popular training courses

Services
Other Information


Extra Navigation

This section is here to give you a brief overview of a few different packages and programmes.

Absence Management - Learn how to measure, monitor and benchmark absence, understand the disciplinary and legal framework of absence management, handle interviews, and identify the causes of absence. Absence Management courses in the North East >>

Access - Microsoft Access enables you to create and manage databases, from the very simple to the very complex. We provide Access courses levels 1-3 which cover advanced use of Access.

Acrobat - Adobe Acrobat is part of the Adobe Suit, designed to view, create manipulate and manage documents in Portable Document Format (PDF). Using PDF allows you to present information electronically in a fixed format, allowing the information to be viewed independent of the program in which it was created. Click here to view an Acrobat course outline.

ArcView - ArcView is full-featured geographic information system (GIS) software which enables you to visualize, manage, create, and analyse geographic data. Using ArcView, you can understand the geographic context of your data, enabling you to see relationships and identify patterns in new ways. View ArcView Introduction . View ArcView Advanced.

ASP - ASP enables you to create dynamic web applications, anything from small websites to large, enterprise-class web applications. More Details.

Bullying and Harassment Counseling- More details.

Business Writing Skills - More details

Captivate - Adobe Captivate 3 software is an eLearning authoring tool that enables you to create simulations, software demonstrations, scenario-based training courses, and quizzes without programming or multimedia skills. Based on the industry-leading Adobe Flash platform, Adobe Captivate 3 automatically generates interactive Adobe Flash Player compatible content without requiring you to learn the Flash authoring tool. Click here to view our introduction to Captivate course. Click here to view our advanced course outline.

Cisco CCNA - CCNA is the accronym for the Cisco Network Associate certification. Click here for the Cisco Fast Track.

ColdFusion Adobe ColdFusion solves the day-to-day challenges of Internet application development, enabling you to create and deliver engaging online applications. ColdFusion can be used for everything from small departmental applications to highly scalable, reliable implementations of your most important business applications. Click here to view the ColdFusion course outline.

CompTIA Network+ - CompTIA Network+ Certification is an international, vendor-neutral certification that recognizes a technician's ability to describe the features and functions of networking components and to install, configure and troubleshoot basic networking hardware, protocols and services.

CorelDRAW - CorelDRAW Graphics Suite is a program used to create and manipulate text and graphics which enables you turn your creative ideas into professional results.View the CorelDRAW course outline by clicking here.

Crystal Reports - Crystal Reports enables you to design, explore, visualize, and deliver reports via the web or embedded in enterprise applications. We provide Crystal Reports Level 2 training courses , equivalent to introduction and advanced, enabling even the newest user to become confident with Crystal Reports. You can also choose to be trained on Crystal Reports Server, contact us to learn more information about these two courses.

Customer Service and Dealing with Aggression on the Phone - More details

Dreamweaver - Adobe Dreamweaver enables you to build websites and internet application features without having to write any HTML code by hand. Dreamweaver is designed to be "what you see is what you get" - what you design in the Dreamweaver "document window" will be coded and placed in the document so that the browser will display the web page just as you see it in your Dreamweaver window. Dreamweaver has a large array of features and functions including some site management functions. Training courses available in Newcastle and throughout the North East. We provide Dreamweaver introduction, intermediate and advanced courses.

Drug Awareness - Dealing with drug and alcohol problems in the workplace.

How to Develop and Implement a Business Plan - More details of this course

Excel - Microsoft Excel is a spreadsheet program that can be used for storing, organising and manipulating data. Excel is part of the Microsoft Office suite. We provide Excel courses in Newcastle for a variety of levels, including introduction, intermediate, advanced and expert. We also provide courses on Excel Pivot Tables.

Event Management - This hands-on course is designed for those involved with commissioning and managing corporate events and conferences.

Fireworks - Adobe Fireworks is a program used to create and manipulate text and graphics. Our courses cover both introductory and advanced levels.

Flash - Adobe Flash is a multimedia program most commonly used to enrich web pages with text, graphics and video. We provide Flash training courses at both introductory and advanced levels.

FreeHand - FreeHand is useful for creative design, storyboarding, document production, and editing. Freehand enables you to repurpose your designs for print, the Internet, or Adobe Flash. Our Freehand courses cover both introductory and advanced levels.

FrontPage - Microsoft FrontPage enables you to create, edit, manage, and upload websites. Some of the special features of FrontPage (such as a graphical counter, forms, database, etc.) require that the website be uploaded to a server which supports Microsoft FrontPage extensions. We provide Frontpage courses in Newcastle at both introductory and advanced levels.

Google Adwords - By successfully implementing Google Adwords, organisations can target specific audiences who search for their services.

Illustrator - Adobe Illustrator enables you to create artwork for a large number of mediums. Our courses cover many different aspects of Illustrator including: palettes, filters, plug-ins, graphs, masks and much more.

Internet Marketing
This subject covers Search Engine Optimisation (SEO) and Google Adwords as well as blogs and social media networks. Click here for the internet marketing course details.

InDesign - Adobe InDesign is a professional page layout software which enables you to explore creative possibilities, design pages, increase productivity and streamline repetitive tasks. Our courses cover working with text, graphics, objects, colour, images, PDF files and much more. Our courses can also aid you in working with InDesign for print production.

ITIL ISEB Foundation Certificate in IT Service Management - This is an intensive and enjoyable 3-day course that provides a firm foundation in IT Service Management best practices and processes.

JavaScript - JavaScript is a scripting language used in web pages which enables you to add functionality to web pages, validate forms, detect browsers, and much more. Click here to view more details of our JavaScript course.

Microsoft Certified IT Professional Windows 2008 Server Administrator - This MCITP course track is a combination of the following: Windows Server 2008 : Configure and Troubleshoot a Network Infrastructure (6421), Windows Server 2008 - Configure Active Directory Domain Services (6425), Windows Server 2008 : Planning and Administering Servers (6430) and Windows Server 2008 : Configure & Troubleshoot Identity & Access Management in Active Dir (6426)

Microsoft Dynamics CRM - Microsoft Dynamics CRM is a customer relationship management system designed to help you gain and maintain customer relationships.

MapInfo - MapInfo is a mapping and geographic analysis application (GIS) which enables you to produce digital maps by linking data and geography. Our MapInfo courses cover map layers, production and output, data layers, selection methods, querying methods, thematic mapping, object editing, and much more.

Outlook - Microsoft Outlook can be used as a stand-alone application, but can also operate in conjunction with Microsoft Exchange Server to provide enhanced functions for multiple users in an organisation, such as shared mailboxes and calendars, public folders and meeting time allocation. Our Outlook courses take you from the initial introduction to advanced customisation.

Paint Shop Pro - Paint Shop Pro enables you to create and manipulate text and graphics.

PhotoShop - Adobe PhotoShop is a professional image and graphics editing package. Our courses cover both introductory and advanced levels.

PhotoShop Elements - Click here to view more details on our PhotoShop Elements course.

PowerPoint - Microsoft PowerPoint is a program used to create presentations. The documents designed in PowerPoint can be printed or displayed with a video or a slide projector. Our project training courses take you from the initial set up of our presentation to the finishing touches.

Prince2 - PRINCE2 Foundation and Practitioner Certification form the basis of the PRINCE2 accreditation program. Our courses teach the application of the PRINCE2 components, processes and techniques. In addition our courses aid delegates in reaching the PRINCE2 certification.

Project - Microsoft Project enables you to manage projects, assigning resources to tasks, tracking progress, managing budgets and analyzing workloads. Our courses running throughout the North East include Project Level 1, Level 2, and Project Server 2007/2010 Deploying & Managing.

Project Management Training Courses - This three day course goes into the theory behind project management, and enables the delegates to effectively implement the theory in their own situations.

Publisher - Microsoft Publisher is an easy to use desktop publishing application that helps you create, customise, and publish materials such as newsletters, brochures, flyers, catalogues, and websites. Our training courses cover introductory to advanced levels.

QuarkXpress - QuarkXpress enables you to create and edit complex page layouts in a WYSIWYG environment. We provide courses that cover introductory and advanced levels.

Sage - Sage is a flexible business management solution for small to medium sized businesses. Sage can help you manage everything from VAT returns and cash flow to management of customers and suppliers and year end accounts. Our courses include Sage Accounts, Sage Bookkeeping and Sage Instant Level 1.

SharePoint - SharePoint is a web-based collaboration and document management platform from Microsoft. SharePoint enables you to host web sites that access shared workspaces and documents, as well as specialized applications like wikis and blogs from a browser. We provide SharePoint User and SharePoint Designer courses.

SQL Server - Microsoft SQL Server is a relational database management system. Our courses for SQL Server include: SQL Server Database Design, SQL Server Getting Started, SQL Server 2005 Querying using Transact and SQL Server Reporting Services.


Visual Basic for Applications (VBA) - Visual Basic for Applications (VBA) is an implementation of Microsoft's Visual Basic, an event driven programming language and associated integrated development environment (IDE) which is built into most Microsoft Office applications. VBA is closely related to Visual Basic. VBA has the ability to use (ActiveX/COM) DLLs, and later versions add support for class modules. We provide a number of courses on the VBA topic including:

Visio - Microsoft Visio provides a Microsoft drawing environment with a broad range of templates, shapes, and sophisticated tools designed to facilitate the creation of a wide variety of business and technical diagrams. We provide Visio introduction and advanced courses in Newcastle and Washington.

Word - Microsoft Word enables you to create, edit, format, and save documents. Microsoft Word is part of the Microsoft Office suite of programs. We provide Word courses in the North East including Newcastle, equivalent to introduction, intermediate and advanced. We also provide the course VBA Using Word.

Other useful sites may include: Excel Keyboard Shortcuts, Microsoft Word Keyboard Shortcuts and Dreamweaver Shortcuts.Computer Training Courses

Where do we train?
Some of the areas in which we provide: Ashington, Beverley, Birmingham, Blyth, Carlisle, Consett, Cramlington, Cumbria, training courses in Darlington, North East England, training courses in County Durham, Eaglescliffe, Gateshead, Great Ayton, Grimsby, Guisborough, Harrogate, Hull, Kirklevington, Leeds, Malton, Manchester, Middlesbrough, Morpeth, training courses in Newcastle, Northallerton, North Yorkshire, Nottingham, Pickering, Redcar, Saltburn, Scarborough, Sedgefield, Selby, Sheffield, Skipton, Stockton, Stokesley, training courses in Sunderland, Swindon, Tadcaster, Thirsk, Tynedale, Tyne and Wear, Wakefield, courses in Washington, North East England, Whitby, Yarm and York.