add a class when login

If you are using the body_class() function, a class admin-bar will be added automatically when the admin bar is active. For example:

<body class="home blog logged-in admin-bar">

You can then use that class in your CSS to specify specific rules:

.admin-bar .Div1 { /* custom styles */ }

error code: 523