Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8673651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:30:48+00:00 2026-06-12T19:30:48+00:00

I am trying to make a div tag that surrounds everything but the <p>

  • 0

I am trying to make a div tag that surrounds everything but the <p> tags. Is there any way to exclude a certain or certain tags? Thanks for the help.

My code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<head>
<link rel="stylesheet" type="text/css" href="styles.css" />

<body>

<div id='main'>

<h1>FREE Python programs!</h1>

<h3><p>You're saying to yourself "I could use a handy little program that does this
" or "I need a better calculator than Windows has provided me!" THIS IS THE SITE YOU'VE      BEEN LOOKING FOR! Just email me at:</p></h3> 

<a href="mailto:benevedeselias@gmail.com" target="_blank">Python Program Maker</a>

<h3><p>And I'll respond as fast as I can!</p></h3>
<p>This is my portfolio of very small applications:</p>

<a href="portfolio.zip">Portfolio Download</a>

<p>If you would like to subscribe to my Python Mailing list, click on the link above to    shoot me an email. Please have the subject be "Add to mailing list". All this mailing list    would do is send you updates to my website, python programs, or portfolio. This would mean   a great lot to me if you did.</p>

<p>These links provide more information about each piece in my portfolio:</p>

<a href='CardDrawer.html'>Card Drawer</a>
<a href='BlockGame.html'>Block Game</a>
<a href='Dice.html'>Dice</a>
<a href='SecretNumber.html'>Secret Number</a>

<p>If you would like to learn python yourself, I have started a video tutorial series.     Here is the first one:</p>
<iframe width="560" height="315" src="http://www.youtube.com/embed/STe5x9V8kbk?rel=0"    frameborder="0" allowfullscreen></iframe>

</div>



</body>

</head>

All that I am attempting to do is to avoid having to have multiple div tags breaking at every p tag and start again after it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:30:49+00:00Added an answer on June 12, 2026 at 7:30 pm

    I really do not understand what you mean, but I can try:

    You can give your <p> tags their own classes and/or id’s. you can make a class/id for it in your css and that way they will ignore the css given to your div. (I hope this is what you mean)

    so you get:

    <p class="yourclass">text</p>
    

    You can even give them a different background color. If you don’t want to have them in your div, simply place them outside of it. There is not much benefit to it though…

    If you mean you want to end the div with every one, that’s what you have to do though. No way around it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to know that is there any way to make tag avoid from
I'm trying to make a div with an image in it that I'm using
I'm trying to make a little tag list doohickey for adding and removing tags.
I'm trying to make the <div id = sun> tag containing the png image
I'm trying to make a div disappear and reappear after a set amount of
I am trying to make a div slide to a FIXED position on the
I am trying to make my DIV's height expand to it's child elements. I
I'm trying to make a div assume 100% of it's parent div. The parent
I have been trying to make a div fade in evey 30sec and out
I'll keep it brief. I'm trying to make a div element height 100%. All

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.